Skip to content
Snippets Groups Projects
Commit 221a5cd8 authored by Philipp Hörist's avatar Philipp Hörist Committed by mesonium
Browse files

refactor: Fix Migration and program name

parent 2f44d0fb
No related branches found
No related tags found
No related merge requests found
...@@ -194,9 +194,7 @@ def __init__(self): ...@@ -194,9 +194,7 @@ def __init__(self):
self.interface = None self.interface = None
GLib.set_prgname(app.get_default_app_id()) GLib.set_application_name('Gajim')
if GLib.get_application_name() != 'Gajim':
GLib.set_application_name('Gajim')
@staticmethod @staticmethod
def _get_remaining_entry(): def _get_remaining_entry():
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
from io import StringIO from io import StringIO
from gi.repository import Gtk from gi.repository import Gtk
from gi.repository import GLib
from gajim.common import app from gajim.common import app
from gajim.common.events import DBMigrationError from gajim.common.events import DBMigrationError
...@@ -66,9 +67,9 @@ def _on_progress(self, event: DBMigrationProgress) -> None: ...@@ -66,9 +67,9 @@ def _on_progress(self, event: DBMigrationProgress) -> None:
self._ui.stack.set_visible_child_name('progress-page') self._ui.stack.set_visible_child_name('progress-page')
self._ui.status_label.set_text(f'{event.value} %') self._ui.status_label.set_text(f'{event.value} %')
# TODO GTK4 context = GLib.MainContext.default()
while Gtk.events_pending(): while context.pending():
Gtk.main_iteration() context.iteration(may_block=False)
def _on_finished(self, event: DBMigrationFinished) -> None: def _on_finished(self, event: DBMigrationFinished) -> None:
self._ui.stack.set_visible_child_name('success-page') self._ui.stack.set_visible_child_name('success-page')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment