Skip to content

Commit

Permalink
Fix indent of GNOME 46 conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Feb 18, 2024
1 parent 99ccc40 commit f0440a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ class Caffeine extends QuickSettings.SystemIndicator {
// Add indicator and toggle
QuickSettingsMenu.addExternalIndicator(this);
if (ShellVersion >= 46) {
QuickSettingsMenu._indicators.remove_child(this);
QuickSettingsMenu._indicators.remove_child(this);
} else {
QuickSettingsMenu._indicators.remove_actor(this);
QuickSettingsMenu._indicators.remove_actor(this);
}
QuickSettingsMenu._indicators.insert_child_at_index(this, this.indicatorIndex);

Expand Down Expand Up @@ -532,9 +532,9 @@ class Caffeine extends QuickSettings.SystemIndicator {

// Update indicator index
if (ShellVersion >= 46) {
QuickSettingsMenu._indicators.remove_child(this);
QuickSettingsMenu._indicators.remove_child(this);
} else {
QuickSettingsMenu._indicators.remove_actor(this);
QuickSettingsMenu._indicators.remove_actor(this);
}
QuickSettingsMenu._indicators.insert_child_at_index(this, this.indicatorIndex);
this._settings.set_int(INDICATOR_INDEX, this.indicatorIndex);
Expand Down

0 comments on commit f0440a4

Please sign in to comment.