Skip to content

Commit

Permalink
ConfigDialog: adjust dialog height when errors are shown on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosottile committed Jun 21, 2019
1 parent b37a514 commit 763406b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syncplay/ui/GuiConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,8 @@ def __init__(self, config, playerpaths, error, defaultConfig):
self.storeAndRunButton.setFocus()
if isMacOS():
initialHeight = self.connectionSettingsGroup.minimumSizeHint().height()+self.mediaplayerSettingsGroup.minimumSizeHint().height()+self.bottomButtonFrame.minimumSizeHint().height()+50
if self.error:
initialHeight += 40
self.setFixedWidth(self.sizeHint().width())
self.setFixedHeight(initialHeight)
else:
Expand Down

0 comments on commit 763406b

Please sign in to comment.