From b072496b3154a07671dae9ca95f835f5e9285c1d Mon Sep 17 00:00:00 2001 From: real-yfprojects Date: Thu, 24 Nov 2022 17:55:10 +0100 Subject: [PATCH] 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. --- src/vorta/views/repo_tab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vorta/views/repo_tab.py b/src/vorta/views/repo_tab.py index 0d2791d7..8634c2c3 100644 --- a/src/vorta/views/repo_tab.py +++ b/src/vorta/views/repo_tab.py @@ -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"))