mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
migrate box show desktop options to adw preferences group
This commit is contained in:
12
prefs.js
12
prefs.js
@@ -245,7 +245,10 @@ const Preferences = class {
|
||||
let isVertical = position == Pos.LEFT || position == Pos.RIGHT;
|
||||
let showDesktopWidthLabel = this._builder.get_object('show_showdesktop_width_label');
|
||||
|
||||
showDesktopWidthLabel.set_text(isVertical ? _('Show Desktop button height (px)') : _('Show Desktop button width (px)'));
|
||||
if(this._window)
|
||||
showDesktopWidthLabel.set_title(isVertical ? _('Show Desktop button height (px)') : _('Show Desktop button width (px)'));
|
||||
else
|
||||
showDesktopWidthLabel.set_text(isVertical ? _('Show Desktop button height (px)') : _('Show Desktop button width (px)'));
|
||||
|
||||
this._displayPanelPositionsForMonitor(this._currentMonitorIndex);
|
||||
}
|
||||
@@ -1308,6 +1311,13 @@ const Preferences = class {
|
||||
'sensitive',
|
||||
Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
if(this._window) {
|
||||
this._settings.bind('show-showdesktop-hover',
|
||||
this._builder.get_object('grid_show_showdesktop_hide_options2'),
|
||||
'sensitive',
|
||||
Gio.SettingsBindFlags.DEFAULT);
|
||||
}
|
||||
|
||||
this._settings.bind('show-appmenu',
|
||||
this._builder.get_object('show_appmenu_switch'),
|
||||
'active',
|
||||
|
||||
Reference in New Issue
Block a user