Skip to content

Commit

Permalink
adjust width of buttons in options dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-Haupt-1 committed Apr 25, 2022
1 parent 5a6e6ee commit 55f4248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions options_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def setup_ui(self):
sync_timeout_label = QLabel('Sync after')
sync_timeout_label.setToolTip('How many minutes after you have last interacted with Anki the program will wait to start the sync')
self.sync_timeout_spinbox.setAlignment(Qt.AlignRight | Qt.AlignTrailing | Qt.AlignVCenter)
self.sync_timeout_spinbox.setFixedWidth(80)
#self.sync_timeout_spinbox.setFixedWidth(110)
self.sync_timeout_spinbox.setMinimum(1)

self.sync_timeout_spinbox.setValue(self.config.get(CONFIG_SYNC_TIMEOUT))
Expand All @@ -76,7 +76,7 @@ def setup_ui(self):
idle_sync_timeout_label.setToolTip('While you are not using Anki, the program will keep syncing in the background (in case you are using Anki on mobile or web and there are changes to sync)')
self.idle_sync_timeout_spinbox.setMinimum(1)
self.idle_sync_timeout_spinbox.setAlignment(Qt.AlignRight | Qt.AlignTrailing | Qt.AlignVCenter)
self.idle_sync_timeout_spinbox.setFixedWidth(80)
#self.idle_sync_timeout_spinbox.setFixedWidth(110)
self.idle_sync_timeout_spinbox.setValue(self.config.get(CONFIG_IDLE_SYNC_TIMEOUT))
if self.idle_sync_timeout_spinbox.value() == 1:
self.idle_sync_timeout_spinbox.setSuffix(" minute")
Expand All @@ -100,7 +100,7 @@ def setup_ui(self):

open_log_button.setText("Show log ...")
open_log_button.clicked.connect(lambda *args: self.on_log_dialog_call())
open_log_button.setMaximumWidth(80)
open_log_button.setMaximumWidth(100)

# Close button

Expand Down

0 comments on commit 55f4248

Please sign in to comment.