mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Disable multi monitor options with a single monitor
This commit is contained in:
5
prefs.js
5
prefs.js
@@ -456,6 +456,11 @@ const Settings = new Lang.Class({
|
||||
'active',
|
||||
Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
if (monitors.length === 1) {
|
||||
this._builder.get_object('multimon_listbox').set_sensitive(false);
|
||||
this._builder.get_object('multimon_multi_switch').set_active(false);
|
||||
}
|
||||
|
||||
this._builder.get_object('multimon_multi_options_button').connect('clicked', Lang.bind(this, function() {
|
||||
let dialog = new Gtk.Dialog({ title: _('Multi-monitors options'),
|
||||
transient_for: this.widget.get_toplevel(),
|
||||
|
||||
Reference in New Issue
Block a user