Add event to disable sub option

This commit is contained in:
Balazs Gyurak
2020-01-05 22:13:19 +00:00
parent 6ae952ebb4
commit 40cf21160d

View File

@@ -123,6 +123,11 @@ function buildPrefsWidget() {
layout.attach(doubleWidthLabel, 0, row, 1, 1); layout.attach(doubleWidthLabel, 0, row, 1, 1);
layout.attach(doubleWidthInput, 1, 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 // Debug setting
let debugLabel = new Gtk.Label({ let debugLabel = new Gtk.Label({
label: _("Turn on debugging"), label: _("Turn on debugging"),