mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-02 03:48:03 +03:00
@@ -2322,8 +2322,12 @@ class ServerWidget(Translatable, SupportConnectedCallback, TableWidget):
|
||||
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
|
||||
|
||||
@@ -2454,9 +2458,6 @@ class EditConfigurationWidget(MainWindow):
|
||||
# Note: Set tab text later
|
||||
self.editorTab.addTab(self.serverEditorTabWidget, '')
|
||||
|
||||
if APP().HideEditor == Switch.ON_:
|
||||
self.editorTab.hide()
|
||||
|
||||
self.serverWidget = ServerWidget(parent=self)
|
||||
|
||||
# Buttons
|
||||
@@ -2499,6 +2500,11 @@ class EditConfigurationWidget(MainWindow):
|
||||
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)
|
||||
|
||||
@@ -175,6 +175,8 @@ class MainWindow(Translatable, SupportConnectedCallback, NeedSyncSettings, QMain
|
||||
super().show()
|
||||
|
||||
if PLATFORM == 'Darwin':
|
||||
APP().processEvents()
|
||||
|
||||
self.setWidthAndHeight()
|
||||
|
||||
moveToCenter(self)
|
||||
|
||||
Reference in New Issue
Block a user