mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-12 01:03:51 +01:00
Refactor: Add settings to globalThis
Do this so that we don't have to get them in each class individually.
This commit is contained in:
parent
2f9f4d1a3f
commit
34ba8a58cd
4 changed files with 6 additions and 10 deletions
|
|
@ -25,8 +25,6 @@ var PrefsPage = GObject.registerClass({
|
|||
constructor(params = {}) {
|
||||
super(params);
|
||||
|
||||
this._settings = ExtensionUtils.getSettings();
|
||||
|
||||
// Scroll up or down, when a Drag-and-Drop operation is in progress and
|
||||
// the user has their cursor either in the upper or lower 10% of this
|
||||
// widget respectively.
|
||||
|
|
@ -73,8 +71,8 @@ var PrefsPage = GObject.registerClass({
|
|||
gtkListBox.set_placeholder(new PrefsBoxOrderListEmptyPlaceholder.PrefsBoxOrderListEmptyPlaceholder());
|
||||
};
|
||||
|
||||
initializeGtkListBox(this._settings.get_strv("left-box-order"), this._left_box_order);
|
||||
initializeGtkListBox(this._settings.get_strv("center-box-order"), this._center_box_order);
|
||||
initializeGtkListBox(this._settings.get_strv("right-box-order"), this._right_box_order);
|
||||
initializeGtkListBox(settings.get_strv("left-box-order"), this._left_box_order);
|
||||
initializeGtkListBox(settings.get_strv("center-box-order"), this._center_box_order);
|
||||
initializeGtkListBox(settings.get_strv("right-box-order"), this._right_box_order);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue