Esempio n. 1
0
 def first_run(self):
     from gridsync.wizard import Wizard
     w = Wizard(self)
     w.exec_()
     logging.debug("Got first run settings: ", self.settings)
     self.initialize_gateways()
     self.start_gateways()
Esempio n. 2
0
 def first_run(self):
     from gridsync.wizard import Wizard
     w = Wizard()
     w.exec_()
     if not w.introducer_furl or not w.folder:
         logging.debug("Setup wizard not completed; exiting")
         reactor.stop()
         return
     self.settings = {w.introducer_furl: {'tahoe.cfg': DEFAULT_SETTINGS}}
     self.settings[w.introducer_furl]['sync'] = {w.folder: None}
     logging.debug("Setup wizard finished. Using: %s", self.settings)
     self.initialize_gateways()
     self.start_gateways()