Skip to content

Commit

Permalink
focus quality ... 1/x ?
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarza9788 committed Oct 26, 2024
1 parent b3f9f79 commit 91422d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default class BurnMyWindowsPreferences extends ExtensionPreferences {
Wisps,
];


// Load all of our resources.
this._resources =
Gio.Resource.load(this.path + '/resources/burn-my-windows.gresource');
Expand All @@ -108,6 +109,7 @@ export default class BurnMyWindowsPreferences extends ExtensionPreferences {
this._builder.add_from_resource(`/ui/common/menus.ui`);
this._builder.add_from_resource(`/ui/${getUIDir()}/prefs.ui`);


// Store a reference to the general settings object.
this._settings = this.getSettings();

Expand Down Expand Up @@ -137,6 +139,7 @@ export default class BurnMyWindowsPreferences extends ExtensionPreferences {
// Maybe the service is masked...
}


let powerProfileRow = this._builder.get_object('profile-power-profile');
powerProfileRow.set_visible(hasPowerProfiles);

Expand Down Expand Up @@ -176,6 +179,7 @@ export default class BurnMyWindowsPreferences extends ExtensionPreferences {
}
});


// This is our top-level widget which we will return later.
this._widget = this._builder.get_object('general-prefs');

Expand Down Expand Up @@ -277,6 +281,7 @@ export default class BurnMyWindowsPreferences extends ExtensionPreferences {
}
});


// Some things can only be done once the widget is shown as we do not have access to
// the toplevel widget before.
this._widget.connect('realize', (widget) => {
Expand Down Expand Up @@ -424,7 +429,7 @@ GitHub: <a href='https://github.com/sponsors/schneegans'>https://github.com/spon
this._settings.set_int('last-prefs-version', this.metadata.version)
});
group.add_action(changelogAction);

// Add the about dialog.
const aboutAction = Gio.SimpleAction.new('about', null);
aboutAction.connect('activate', () => {
Expand Down

0 comments on commit 91422d0

Please sign in to comment.