display weboob-config-qt at launch on Qt applications when there are no configured backends
This commit is contained in:
parent
31445de767
commit
f0ea8829a2
5 changed files with 24 additions and 3 deletions
|
|
@ -39,9 +39,13 @@ class MainWindow(QtMainWindow):
|
|||
self.connect(self.ui.actionBackends, SIGNAL("triggered()"), self.backendsConfig)
|
||||
self.connect(self.ui.actionRefresh, SIGNAL("triggered()"), self.refresh)
|
||||
|
||||
if self.weboob.count_backends() == 0:
|
||||
self.backendsConfig()
|
||||
|
||||
def backendsConfig(self):
|
||||
bckndcfg = BackendCfg(self.weboob, (ICapMessages,), self)
|
||||
bckndcfg.show()
|
||||
if bckndcfg.run():
|
||||
self.refresh()
|
||||
|
||||
def refresh(self):
|
||||
self.centralWidget().refresh()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue