Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a3ca3839 by Philipp Hörist at 2025-09-03T16:55:13+02:00
refactor: Preferences: Remove unused settings
- - - - -
1 changed file:
- gajim/gtk/preference/account.py
Changes:
=====================================
gajim/gtk/preference/account.py
=====================================
@@ -27,7 +27,6 @@
from gajim.gtk.const import Setting
from gajim.gtk.const import SettingKind
from gajim.gtk.const import SettingType
-from gajim.gtk.filechoosers import Filter
from gajim.gtk.omemo_trust_manager import OMEMOTrustManager
from gajim.gtk.settings import GajimPreferencePage
from gajim.gtk.settings import GajimPreferencesGroup
@@ -74,12 +73,6 @@ def __init__(self, account: str) -> None:
inverted=True,
props={"subpage": f"{self.account}-general-login"},
),
- # Currently not supported by nbxmpp
- #
- # Setting(SettingKind.DIALOG,
- # _('Client Certificate'),
- # SettingType.SUBPAGE,
- # props={'subpage':
f"{self.account}-general-certificate"}),
Setting(
SettingKind.SWITCH,
_("Connect on startup"),
@@ -611,35 +604,6 @@ def __init__(self, account: str) -> None:
self.add_setting(setting)
-class CertificateGroup(GajimPreferencesGroup):
- def __init__(self, account: str) -> None:
- GajimPreferencesGroup.__init__(self, key="certificate",
account=account)
-
- settings = [
- Setting(
- SettingKind.FILECHOOSER,
- _("Client Certificate"),
- SettingType.ACCOUNT_CONFIG,
- "client_cert",
- props={
- "filefilter": [
- Filter(name=_("All files"), patterns=["*"]),
- Filter(name=_("PKCS12 Files"), patterns=["*.p12"]),
- ]
- },
- ),
- Setting(
- SettingKind.SWITCH,
- _("Encrypted Certificate"),
- SettingType.ACCOUNT_CONFIG,
- "client_cert_encrypted",
- ),
- ]
-
- for setting in settings:
- self.add_setting(setting)
-
-
class AccountGeneralPage(GajimPreferencePage):
def __init__(self, account: str) -> None:
GajimPreferencePage.__init__(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a3ca38397ffed852e92fb46d5232b406b0ba74b6
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a3ca38397ffed852e92fb46d5232b406b0ba74b6
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]