mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Add event to disable sub option
This commit is contained in:
7
prefs.js
7
prefs.js
@@ -110,7 +110,7 @@ function buildPrefsWidget() {
|
||||
|
||||
// Double width previews
|
||||
let doubleWidthLabel = new Gtk.Label({
|
||||
label: _(" Use double width previews on sides in 4 column mode"),
|
||||
label: _(" Use double width previews on sides in 4 column mode"),
|
||||
visible: true,
|
||||
hexpand: true,
|
||||
halign: Gtk.Align.START
|
||||
@@ -123,6 +123,11 @@ function buildPrefsWidget() {
|
||||
layout.attach(doubleWidthLabel, 0, row, 1, 1);
|
||||
layout.attach(doubleWidthInput, 1, row++, 1, 1);
|
||||
|
||||
previewInput.connect('state-set', function(widget, state) {
|
||||
doubleWidthLabel.set_sensitive(state);
|
||||
doubleWidthInput.set_sensitive(state);
|
||||
});
|
||||
|
||||
// Debug setting
|
||||
let debugLabel = new Gtk.Label({
|
||||
label: _("Turn on debugging"),
|
||||
|
||||
Reference in New Issue
Block a user