Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
99f66cdb by wurstsalat at 2022-10-17T00:17:31+02:00
cq: Preferences: Fix type annotations

- - - - -


1 changed file:

- gajim/gtk/preferences.py


Changes:

=====================================
gajim/gtk/preferences.py
=====================================
@@ -35,7 +35,7 @@
 from gajim.common.multimedia_helpers import VideoInputManager
 from gajim.common.events import StyleChanged
 from gajim.common.events import ThemeUpdate
-from gajim.common.setting_values import AllSettings
+from gajim.common.setting_values import BoolSettings
 
 from .const import Setting
 from .const import SettingKind
@@ -912,7 +912,7 @@ def _create_av_combo_items(items_dict: dict[str, str]) -> 
dict[str, str]:
 
 class Miscellaneous(PreferenceBox):
     def __init__(self, pref_window: Preferences) -> None:
-        self._hints_list: list[AllSettings] = [
+        self._hints_list: list[BoolSettings] = [
             'show_help_start_chat',
         ]
 
@@ -946,7 +946,7 @@ def __init__(self, pref_window: Preferences) -> None:
 
         reset_button = pref_window.get_ui().reset_button
         reset_button.connect('clicked', self._on_reset_hints)
-        reset_button.set_sensitive(self._check_hints_reset)
+        reset_button.set_sensitive(self._check_hints_reset())
 
         purge_history_button = pref_window.get_ui().purge_history_button
         purge_history_button.connect('clicked', self._on_purge_history_clicked)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/99f66cdb0a7d9ef9a70c4b743aa1f0eada5c8900

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


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to