diff --git a/qubes_config/global_config/global_config.py b/qubes_config/global_config/global_config.py index 3440155d..fb1a1c55 100644 --- a/qubes_config/global_config/global_config.py +++ b/qubes_config/global_config/global_config.py @@ -324,9 +324,6 @@ def perform_setup(self): """ The function that performs actual widget realization and setup. """ - self.progress_bar_dialog.show() - self.progress_bar_dialog.update_progress(0) - self.builder = Gtk.Builder() glade_ref = (importlib.resources.files('qubes_config') / 'global_config.glade') @@ -342,6 +339,9 @@ def perform_setup(self): light_file_name='qubes-global-config-light.css', dark_file_name='qubes-global-config-dark.css') + self.progress_bar_dialog.show_all() + self.progress_bar_dialog.update_progress(0) + self.apply_button: Gtk.Button = self.builder.get_object('apply_button') self.cancel_button: Gtk.Button = \ self.builder.get_object('cancel_button') diff --git a/qubes_config/new_qube/new_qube_app.py b/qubes_config/new_qube/new_qube_app.py index af481b93..f0a3f7c1 100644 --- a/qubes_config/new_qube/new_qube_app.py +++ b/qubes_config/new_qube/new_qube_app.py @@ -103,9 +103,6 @@ def perform_setup(self): The function that performs actual widget realization and setup. Should be only called once, in the main instance of this application. """ - self.progress_bar_dialog.show() - self.progress_bar_dialog.update_progress(0.1) - self.builder = Gtk.Builder() glade_ref = (importlib.resources.files('qubes_config') / 'new_qube.glade') @@ -122,6 +119,7 @@ def perform_setup(self): light_file_name='qubes-new-qube-light.css', dark_file_name='qubes-new-qube-dark.css') + self.progress_bar_dialog.show_all() self.progress_bar_dialog.update_progress(0.1) self.template_handler = TemplateHandler(self.builder, self.qapp) diff --git a/qubes_config/widgets/gtk_widgets.py b/qubes_config/widgets/gtk_widgets.py index 0e745cf6..005bda60 100644 --- a/qubes_config/widgets/gtk_widgets.py +++ b/qubes_config/widgets/gtk_widgets.py @@ -649,7 +649,6 @@ def __init__(self, parent_application: Gtk.Application, loading_text: str): self.box.pack_start(self.progress_bar, False, False, 10) - self.show_all() self.update_progress(0) self.connect('delete-event', self._quit)