Put the title and persistent options at the top of the options widget, above mode-specific options

This commit is contained in:
Micah Lee 2021-04-13 18:18:44 -04:00
parent 3c85a8dae1
commit 6772431220
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 3 additions and 2 deletions

View file

@ -171,9 +171,9 @@ class ModeSettingsWidget(QtWidgets.QWidget):
self.advanced_widget.hide()
layout = QtWidgets.QVBoxLayout()
layout.addLayout(self.mode_specific_layout)
layout.addLayout(title_layout)
layout.addWidget(self.persistent_checkbox)
layout.addLayout(self.mode_specific_layout)
layout.addWidget(self.public_checkbox)
layout.addWidget(self.advanced_widget)
layout.addWidget(self.toggle_advanced_button)

View file

@ -178,7 +178,8 @@ class TabWidget(QtWidgets.QTabWidget):
tab.init(mode_settings)
# Make sure the title is set
tab.get_mode().mode_settings_widget.title_editing_finished()
if tab.get_mode():
tab.get_mode().mode_settings_widget.title_editing_finished()
# If it's persistent, set the persistent image in the tab
self.change_persistent(tab.tab_id, tab.settings.get("persistent", "enabled"))