mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
feat(networkmanager): add SSID as tooltip
This commit is contained in:
parent
81900c6a29
commit
5c19032e8b
1 changed files with 9 additions and 0 deletions
|
@ -110,6 +110,15 @@ impl Module<GtkBox> for NetworkManagerModule {
|
|||
};
|
||||
}
|
||||
|
||||
match &state.wifi {
|
||||
WifiState::Connected(state) => {
|
||||
wifi_icon.set_tooltip_text(Some(&state.ssid));
|
||||
},
|
||||
_ => {
|
||||
wifi_icon.set_tooltip_text(None);
|
||||
},
|
||||
}
|
||||
|
||||
update_icon!(wired_icon, wired, {
|
||||
WiredState::Connected => &self.icons.wired.connected,
|
||||
WiredState::Disconnected => &self.icons.wired.disconnected,
|
||||
|
|
Loading…
Add table
Reference in a new issue