Philipp Hörist pushed to branch master at gajim / gajim


Commits:
3c5077db by wurstsalat at 2025-01-11T17:59:55+01:00
imprv: Add profile name to window title

Fixes #12168

- - - - -


2 changed files:

- gajim/gtk/application.py
- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/application.py
=====================================
@@ -203,8 +203,6 @@ def __init__(self):
 
         self.interface = None
 
-        GLib.set_application_name("Gajim")
-
     @staticmethod
     def _get_remaining_entry():
         option = GLib.OptionEntry()
@@ -369,10 +367,13 @@ def _handle_local_options(
             return 0
 
         profile = options.lookup_value("profile")
-        if profile is not None:
+        if profile is None:
+            GLib.set_application_name("Gajim")
+        else:
             # Incorporate profile name into application id
             # to have a single app instance for each profile.
             profile = profile.get_string()
+            GLib.set_application_name(f"Gajim ({profile})")
             app_id = f"{self.get_application_id()}.{profile}"
             self.set_application_id(app_id)
             configpaths.set_profile(profile)


=====================================
gajim/gtk/main.py
=====================================
@@ -80,7 +80,7 @@ def __init__(self) -> None:
         Gtk.ApplicationWindow.__init__(self)
         EventHelper.__init__(self)
         self.set_application(app.app)
-        self.set_title("Gajim")
+        self.set_title(GLib.get_application_name())
         self.set_default_icon_name("gajim")
 
         app.window = self



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3c5077db8318b8825cea5c61dade9cf970d71a24

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3c5077db8318b8825cea5c61dade9cf970d71a24
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to