Populate repo info from profile after populating dropdowns.

* src/vorta/views/repo_tab.py (RepoTab.__init__): Move call to `populate_from_profile` from the beginning to the end.
This commit is contained in:
real-yfprojects 2022-11-24 17:55:10 +01:00
parent 031a498ee0
commit b072496b31
No known key found for this signature in database
GPG Key ID: 00F630DFDEE25747
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,6 @@ class RepoTab(RepoBase, RepoUI, BackupProfileMixin):
self.setupUi(parent)
# Populate dropdowns
self.populate_from_profile()
self.repoRemoveToolbutton.clicked.connect(self.repo_unlink_action)
self.copyURLbutton.clicked.connect(self.copy_URL_action)
@ -65,6 +64,8 @@ class RepoTab(RepoBase, RepoUI, BackupProfileMixin):
# Connect to palette change
QApplication.instance().paletteChanged.connect(lambda p: self.set_icons())
self.populate_from_profile() # needs init of ssh and compression items
def set_icons(self):
self.bAddSSHKey.setIcon(get_colored_icon("plus"))
self.bAddRepo.setIcon(get_colored_icon("plus"))