Philipp Hörist pushed to branch invite at gajim / gajim
Commits:
162b1005 by Philipp Hörist at 2026-03-07T18:49:19+01:00
cfix: Fix uri handling
- - - - -
3 changed files:
- gajim/common/helpers.py
- gajim/gtk/application.py
- gajim/gtk/main.py
Changes:
=====================================
gajim/common/helpers.py
=====================================
@@ -569,3 +569,11 @@ def wrapper():
return False
GLib.idle_add(wrapper)
+
+
+def timeout_add_once(timeout_msec: int, func: Callable[..., Any], *args: Any)
-> None:
+ def wrapper():
+ func(*args)
+ return False
+
+ GLib.timeout_add(timeout_msec, wrapper)
=====================================
gajim/gtk/application.py
=====================================
@@ -56,6 +56,7 @@
from gajim.common.const import GAJIM_SUPPORT_JID
from gajim.common.const import GAJIM_WIKI_URI
from gajim.common.helpers import idle_add_once
+from gajim.common.helpers import timeout_add_once
from gajim.common.i18n import _
from gajim.common.modules.contacts import BareContact
from gajim.common.modules.contacts import ResourceContact
@@ -328,7 +329,7 @@ def _command_line(
)
if remaining is not None:
- self.activate_action("handle-uri", remaining)
+ timeout_add_once(200, self.activate_action, "handle-uri",
remaining)
return 0
if not options.contains("is-first-startup"):
=====================================
gajim/gtk/main.py
=====================================
@@ -750,7 +750,7 @@ def open_xmpp_iri(self, xmpp_iri: XmppIri) -> None:
if wizard := get_app_window("AccountWizard"):
wizard.set_invite_data(invite)
else:
- open_window("AccountWizard", inivte=invite)
+ open_window("AccountWizard", invite=invite)
case "roster":
if accounts:
@@ -775,7 +775,7 @@ def open_xmpp_iri(self, xmpp_iri: XmppIri) -> None:
if wizard := get_app_window("AccountWizard"):
wizard.set_invite_data(invite)
else:
- open_window("AccountWizard", inivte=invite)
+ open_window("AccountWizard", invite=invite)
case "join" if accounts:
if len(accounts) == 1:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/162b10058919313c1fd88f9d131831e54ca47fe1
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/162b10058919313c1fd88f9d131831e54ca47fe1
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]