mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Added config option to disable minimizing windows.
By default, the extension minimizes windows after some down presses. This commit makes this behavior configurable: toggling it off stops windows from being minimized.
This commit is contained in:
16
prefs.js
16
prefs.js
@@ -93,6 +93,21 @@ function buildPrefsWidget() {
|
||||
layout.attach(maximizeLabel, 0, row, 1, 1);
|
||||
layout.attach(maximizeInput, 1, row++, 1, 1);
|
||||
|
||||
// Minimize setting
|
||||
let minimizeLabel = new Gtk.Label({
|
||||
label: _("Allow minimizing of windows"),
|
||||
visible: true,
|
||||
hexpand: true,
|
||||
halign: Gtk.Align.START
|
||||
});
|
||||
let minimizeInput = new Gtk.Switch({
|
||||
active: gsettings.get_boolean ('use-minimize'),
|
||||
halign: Gtk.Align.END,
|
||||
visible: true
|
||||
});
|
||||
layout.attach(minimizeLabel, 0, row, 1, 1);
|
||||
layout.attach(minimizeInput, 1, row++, 1, 1);
|
||||
|
||||
// Preview settings
|
||||
let previewEnabled = gsettings.get_boolean ('preview');
|
||||
let previewLabel = new Gtk.Label({
|
||||
@@ -193,6 +208,7 @@ function buildPrefsWidget() {
|
||||
|
||||
gsettings.bind('cols', colsInput, 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||
gsettings.bind('use-maximize', maximizeInput, 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||
gsettings.bind('use-minimize', minimizeInput, 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||
gsettings.bind('preview', previewInput, 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||
gsettings.bind('double-width', doubleWidthInput, 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||
previewDistanceSettingInt.connect('value-changed', function(entry) {
|
||||
|
||||
Reference in New Issue
Block a user