def run_gui(self): """ Pre-population with full user interaction. """ authdlg = PopulateAuthSystemDialog(parent=self.mw, qgis_iface=self.iface, title=self.title, init_run=False) authdlg.exec_()
def app_initialized(self): """ Semi-automated pre-population with minimal user interaction, but only at end of app launch, not after (like when loading via Plugin Manager). """ # noinspection PyArgumentList if (not QgsAuthManager.instance().masterPasswordHashInDb() or not QgsAuthManager.instance().getCertIdentities()): authdlg = PopulateAuthSystemDialog(parent=self.mw, qgis_iface=self.iface, title=self.title, init_run=True) authdlg.exec_()