Skip to content

Commit 9a85256

Browse files
committed
Show progress bar after loading CSS theme
1 parent 83b2fab commit 9a85256

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

qubes_config/global_config/global_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ def perform_setup(self):
248248
"""
249249
The function that performs actual widget realization and setup.
250250
"""
251-
self.progress_bar_dialog.show()
252-
self.progress_bar_dialog.update_progress(0)
253-
254251
self.builder = Gtk.Builder()
255252
glade_ref = (importlib.resources.files('qubes_config') /
256253
'global_config.glade')
@@ -266,6 +263,9 @@ def perform_setup(self):
266263
light_file_name='qubes-global-config-light.css',
267264
dark_file_name='qubes-global-config-dark.css')
268265

266+
self.progress_bar_dialog.show_all()
267+
self.progress_bar_dialog.update_progress(0)
268+
269269
self.apply_button: Gtk.Button = self.builder.get_object('apply_button')
270270
self.cancel_button: Gtk.Button = \
271271
self.builder.get_object('cancel_button')

qubes_config/new_qube/new_qube_app.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ def perform_setup(self):
8989
The function that performs actual widget realization and setup. Should
9090
be only called once, in the main instance of this application.
9191
"""
92-
self.progress_bar_dialog.show()
93-
self.progress_bar_dialog.update_progress(0.1)
94-
9592
self.builder = Gtk.Builder()
9693
glade_ref = (importlib.resources.files('qubes_config') /
9794
'new_qube.glade')
@@ -108,6 +105,7 @@ def perform_setup(self):
108105
light_file_name='qubes-new-qube-light.css',
109106
dark_file_name='qubes-new-qube-dark.css')
110107

108+
self.progress_bar_dialog.show_all()
111109
self.progress_bar_dialog.update_progress(0.1)
112110

113111
self.template_handler = TemplateHandler(self.builder, self.qapp)

qubes_config/widgets/gtk_widgets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ def __init__(self, parent_application: Gtk.Application, loading_text: str):
649649

650650
self.box.pack_start(self.progress_bar, False, False, 10)
651651

652-
self.show_all()
653652
self.update_progress(0)
654653

655654
self.connect('delete-event', self._quit)

0 commit comments

Comments
 (0)