Skip to content

Commit

Permalink
Fix settings type, change default to 550
Browse files Browse the repository at this point in the history
  • Loading branch information
1over137 committed Mar 23, 2024
1 parent a669cc3 commit c840623
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions vocabsieve/config/interface_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def setupWidgets(self):
self.minimum_main_window_width = QSpinBox()
self.minimum_main_window_width.setMinimum(0)
self.minimum_main_window_width.setMaximum(15360)
self.minimum_main_window_width.setToolTip("Set desired minimum window width of the main application - useful to make window snipping easier.")
self.minimum_main_window_width.setToolTip(
"Set desired minimum window width of the main application - useful to make window snipping easier.")

self.theme.currentTextChanged.connect(self.setupTheme)
self.text_scale.valueChanged.connect(
Expand Down Expand Up @@ -100,4 +101,4 @@ def setupAutosave(self):
self.register_config_handler(self.primary, 'primary', False)
self.register_config_handler(self.text_scale, 'text_scale', '100')
self.register_config_handler(self.theme, 'theme', 'auto')
self.register_config_handler(self.minimum_main_window_width, 'minimum_width', 0)
self.register_config_handler(self.minimum_main_window_width, 'minimum_width', 550)
2 changes: 1 addition & 1 deletion vocabsieve/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self) -> None:
self.got_updates.connect(self.gotUpdatesInfo)

self.setupClipboardMonitor()
self.setMinimumWidth(settings.value("minimum_width", 0))
self.setMinimumWidth(settings.value("minimum_width", 550, type=int))

if not settings.value("internal/configured"):
self.configure()
Expand Down

0 comments on commit c840623

Please sign in to comment.