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


Commits:
2d6e4b5a by wurstsalat at 2022-11-08T14:27:57+01:00
imprv: Preferences: Improve preview settings

- - - - -


1 changed file:

- gajim/gtk/preferences.py


Changes:

=====================================
gajim/gtk/preferences.py
=====================================
@@ -409,11 +409,11 @@ def _reset_print_status(button: Gtk.Button) -> None:
 class FilePreview(PreferenceBox):
     def __init__(self, *args: Any) -> None:
         sizes = {
-            262144: '256 KiB',
-            524288: '512 KiB',
-            1048576: '1 MiB',
-            5242880: '5 MiB',
-            10485760: '10 MiB',
+            262144: '256 KB',
+            524288: '512 KB',
+            1048576: '1 MB',
+            5242880: '5 MB',
+            10485760: '10 MB',
         }
 
         settings = [
@@ -426,15 +426,15 @@ def __init__(self, *args: Any) -> None:
                     _('Preview Size'),
                     SettingType.CONFIG,
                     'preview_size',
-                    desc=_('Size of preview image'),
+                    desc=_('Size of preview images in pixels'),
                     bind='enable_file_preview',
                     props={'range_': (100, 1000)}),
 
             Setting(SettingKind.POPOVER,
-                    _('Allowed File Size'),
+                    _('File Size Limit'),
                     SettingType.CONFIG,
                     'preview_max_file_size',
-                    desc=_('Maximum file size for preview generation'),
+                    desc=_('Maximum file size for preview downloads'),
                     bind='enable_file_preview',
                     props={'entries': sizes}),
 
@@ -442,7 +442,7 @@ def __init__(self, *args: Any) -> None:
                     _('Preview in Public Group Chats'),
                     SettingType.CONFIG,
                     'preview_anonymous_muc',
-                    desc=_('Generate preview automatically in public '
+                    desc=_('Show previews automatically in public '
                            'group chats (may disclose your data)'),
                     bind='enable_file_preview'),
 
@@ -450,7 +450,7 @@ def __init__(self, *args: Any) -> None:
                     _('Preview all Image URLs'),
                     SettingType.CONFIG,
                     'preview_allow_all_images',
-                    desc=_('Generate preview for any URLs containing images '
+                    desc=_('Show previews for any URLs containing images '
                            '(may be unsafe)'),
                     bind='enable_file_preview'),
 
@@ -458,7 +458,7 @@ def __init__(self, *args: Any) -> None:
                     _('Left Click Action'),
                     SettingType.CONFIG,
                     'preview_leftclick_action',
-                    desc=_('Action when left-clicking a preview'),
+                    desc=_('Action for left-clicking a preview'),
                     bind='enable_file_preview',
                     props={'entries': PREVIEW_CLICK_ACTIONS}),
 
@@ -466,7 +466,8 @@ def __init__(self, *args: Any) -> None:
                     _('HTTPS Verification'),
                     SettingType.CONFIG,
                     'preview_verify_https',
-                    desc=_('Whether to check for a valid certificate'),
+                    desc=_('Whether to check for a valid certificate before '
+                           'downloading (not safe to disable)'),
                     bind='enable_file_preview'),
         ]
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2d6e4b5ab4ea59312cb8105a4b09d55106e4ed57

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2d6e4b5ab4ea59312cb8105a4b09d55106e4ed57
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