Skip to content

Commit 17ecb4d

Browse files
committed
Limit 50 preloaded disposables
1 parent 4e2fa18 commit 17ecb4d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ checks:tests:
1212
stage: checks
1313
variables:
1414
PYTEST_ADDOPTS: "--color=yes"
15+
BLACK_ARGS: -l88 -v --diff --color --check
1516
before_script: &before-script
1617
- "PATH=$PATH:$HOME/.local/bin"
1718
- sudo dnf install -y python3-gobject gtk3 python3-pytest gtksourceview4

qubes_config/global_config.glade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,8 @@
870870
<object class="GtkSpinButton" id="basics_preload_dispvm">
871871
<property name="visible">True</property>
872872
<property name="can-focus">True</property>
873-
<property name="max-length">3</property>
874-
<property name="max-width-chars">3</property>
873+
<property name="max-length">2</property>
874+
<property name="max-width-chars">2</property>
875875
</object>
876876
<packing>
877877
<property name="expand">False</property>

qubes_config/global_config/basics_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __init__(self, qapp: qubesadmin.Qubes, widget: Gtk.SpinButton):
218218
# TODO: ben: only allow setting if default_dispvm is not empty.
219219
# TODO: ben: if changing default_dispvm, set old value to 0 first.
220220
self.preload_dispvm_adjustment = Gtk.Adjustment()
221-
self.preload_dispvm_adjustment.configure(0, 0, 9999, 1, 10, 0)
221+
self.preload_dispvm_adjustment.configure(0, 0, 50, 1, 10, 0)
222222
self.widget.configure(self.preload_dispvm_adjustment, 0.1, 0)
223223
self.widget.set_value(self.get_current_value())
224224

0 commit comments

Comments
 (0)