Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
Should Fix Issue #1
Browse files Browse the repository at this point in the history
Checks for the batterymenu visibility more directly
  • Loading branch information
Mystro256 committed Feb 23, 2012
1 parent ba09469 commit bc56173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function init(extensionMeta) {
}

function enable() {
//Temporary variable to check power devices
let temp = Main.panel._statusArea.battery._deviceItems;
if(temp == "")
//Check if battery menu is visible
//Then check if a11y menu is visible
if(!Main.panel._statusArea.battery.actor.get_paint_visibility())
{ //check for no battery or power device, i.e. no battery menu
if(Main.panel._statusArea.a11y != null)
{ //check for no a11y (such as from noa11y extension)
Expand Down

0 comments on commit bc56173

Please sign in to comment.