Disable multi monitor options with a single monitor

This commit is contained in:
Charles Gagnon
2018-10-22 18:02:02 -04:00
parent 8bba17c73b
commit b67f8bfce0

View File

@@ -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(),