Skip to content

Commit

Permalink
settings button renamed to Misc, change all occurences
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtedde committed Sep 7, 2023
1 parent 58b95de commit d14a59c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/vorta/assets/UI/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@
</spacer>
</item>
<item>
<widget class="QPushButton" name="settingsButton">
<widget class="QPushButton" name="miscButton">
<property name="text">
<string>Settings</string>
<string>Misc</string>
</property>
<property name="minimumSize">
<size>
Expand Down Expand Up @@ -149,7 +149,7 @@
<item>
<layout class="QVBoxLayout" name="verticalLayoutSidebar">
<item>
<widget class="QTabWidget" name="settingsWidget">
<widget class="QTabWidget" name="miscWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
Expand Down
22 changes: 11 additions & 11 deletions src/vorta/views/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def __init__(self, parent=None):
self.miscTab = MiscTab(self.SettingsTabSlot)
self.aboutTab = AboutTab(self.AboutTabSlot)
self.aboutTab.set_borg_details(borg_compat.version, borg_compat.path)
self.settingsWidget.hide()
self.miscWidget.hide()
self.tabWidget.setCurrentIndex(0)

self.repoTab.repo_changed.connect(self.archiveTab.populate_from_profile)
self.repoTab.repo_changed.connect(self.scheduleTab.populate_from_profile)
self.repoTab.repo_added.connect(self.archiveTab.refresh_archive_list)
self.miscTab.refresh_archive.connect(self.archiveTab.populate_from_profile)

self.settingsButton.clicked.connect(self.toggle_settings_tab)
self.miscButton.clicked.connect(self.toggle_settings_tab)
self.createStartBtn.clicked.connect(self.app.create_backup_action)
self.cancelButton.clicked.connect(self.app.backup_cancelled_event.emit)

Expand Down Expand Up @@ -132,7 +132,7 @@ def set_icons(self):
self.profileRenameButton.setIcon(get_colored_icon('edit'))
self.profileExportButton.setIcon(get_colored_icon('file-import-solid'))
self.profileDeleteButton.setIcon(get_colored_icon('trash'))
self.settingsButton.setIcon(get_colored_icon('settings_wheel'))
self.miscButton.setIcon(get_colored_icon('settings_wheel'))

def set_progress(self, text=''):
self.progressText.setText(text)
Expand Down Expand Up @@ -301,18 +301,18 @@ def profile_add_edit_result(self, profile_name, profile_id):
self.resize_profile_selector()

def toggle_settings_tab(self):
if self.settingsWidget.isVisible():
self.settingsWidget.hide()
if self.miscWidget.isVisible():
self.miscWidget.hide()
self.tabWidget.setCurrentIndex(0)
self.tabWidget.show()
self.settingsButton.setText("Settings")
self.settingsButton.setIcon(get_colored_icon('settings_wheel'))
self.miscButton.setText("Misc")
self.miscButton.setIcon(get_colored_icon('settings_wheel'))
else:
self.tabWidget.hide()
self.settingsWidget.setCurrentIndex(0)
self.settingsWidget.show()
self.settingsButton.setText("Close Settings")
self.settingsButton.setIcon(get_colored_icon('close_X'))
self.miscWidget.setCurrentIndex(0)
self.miscWidget.show()
self.miscButton.setText("Close Misc")
self.miscButton.setIcon(get_colored_icon('close_X'))

def backup_started_event(self):
self._toggle_buttons(create_enabled=False)
Expand Down

0 comments on commit d14a59c

Please sign in to comment.