diff --git a/files/usr/share/cinnamon/applets/inhibit@cinnamon.org/applet.js b/files/usr/share/cinnamon/applets/inhibit@cinnamon.org/applet.js index 0a870c71d4..056c96c98a 100644 --- a/files/usr/share/cinnamon/applets/inhibit@cinnamon.org/applet.js +++ b/files/usr/share/cinnamon/applets/inhibit@cinnamon.org/applet.js @@ -115,10 +115,10 @@ class InhibitSwitch extends PopupMenu.PopupBaseMenuItem { if (current_state & INHIBIT_IDLE_FLAG || current_state & INHIBIT_SLEEP_FLAG) { this._applet.icon.toggleInhibitStatus(true); - this._applet.set_applet_tooltip(_("Power management: inhibited")); + this._applet.set_applet_tooltip(_("Power management: Inhibited")); } else { this._applet.icon.toggleInhibitStatus(false); - this._applet.set_applet_tooltip(_("Power management: active")); + this._applet.set_applet_tooltip(_("Power management: Active")); } if (current_state >= INHIBIT_SLEEP_FLAG && !this.sessionCookie) { @@ -478,7 +478,11 @@ class CinnamonInhibitApplet extends Applet.IconApplet { "inhibit-symbolic" : "inhibit-active-symbolic"; - Main.osdWindowManager.show(-1, Gio.ThemedIcon.new(_symbol)); + let _text = this.inhibitSwitch._switch.state ? + _("Power management: Active") : + _("Power management: Inhibited"); + + Main.osdWindowManager.show(-1, Gio.ThemedIcon.new(_symbol), _text); } toggle_inhibit_notifications() { @@ -488,7 +492,11 @@ class CinnamonInhibitApplet extends Applet.IconApplet { "inhibit-notification-symbolic" : "inhibit-notification-active-symbolic"; - Main.osdWindowManager.show(-1, Gio.ThemedIcon.new(_symbol)); + let _text = this.notificationsSwitch._switch.state ? + _("Notifications: Active") : + _("Notifications: Inhibited"); + + Main.osdWindowManager.show(-1, Gio.ThemedIcon.new(_symbol), _text); } get inhibitors() {