Skip to content

Commit

Permalink
Fix macOS bug
Browse files Browse the repository at this point in the history
Signed-off-by: Loren Eteval <[email protected]>
  • Loading branch information
LorenEteval committed Sep 30, 2023
1 parent 03d761b commit 0964f05
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Furious/Widget/EditConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2322,8 +2322,12 @@ def handleItemActivated(self, item):
return

if APP().tray.ConnectAction.isConnecting():
# Show the MessageBox asynchronously
self.progressWaitBox.open()
if PLATFORM != 'Darwin':
# Show the MessageBox asynchronously
self.progressWaitBox.open()
else:
# Show the MessageBox and wait for user to close it
self.progressWaitBox.exec()

return

Expand Down Expand Up @@ -2454,9 +2458,6 @@ def handleCursorPositionChanged():
# Note: Set tab text later
self.editorTab.addTab(self.serverEditorTabWidget, '')

if APP().HideEditor == Switch.ON_:
self.editorTab.hide()

self.serverWidget = ServerWidget(parent=self)

# Buttons
Expand Down Expand Up @@ -2499,6 +2500,11 @@ def handleCursorPositionChanged():
self.splitter.setStretchFactor(0, 8)
self.splitter.setStretchFactor(1, 5)

if APP().HideEditor == Switch.ON_:
APP().processEvents()

self.editorTab.hide()

self.fakeCentralWidget = QWidget()

self.fakeCentralWidgetLayout = QHBoxLayout(self.fakeCentralWidget)
Expand Down
2 changes: 2 additions & 0 deletions Furious/Widget/Widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ def show(self):
super().show()

if PLATFORM == 'Darwin':
APP().processEvents()

self.setWidthAndHeight()

moveToCenter(self)
Expand Down

0 comments on commit 0964f05

Please sign in to comment.