()
| 4396 | |
| 4397 | |
| 4398 | def run(): |
| 4399 | global myapp |
| 4400 | app = init() |
| 4401 | change_translation(l10n.getTranslationLanguage()) |
| 4402 | app.setStyleSheet("QStatusBar::item { border: 0px solid black }") |
| 4403 | myapp = MyForm() |
| 4404 | |
| 4405 | myapp.sqlInit() |
| 4406 | myapp.appIndicatorInit(app) |
| 4407 | myapp.indicatorInit() |
| 4408 | myapp.notifierInit() |
| 4409 | myapp._firstrun = BMConfigParser().safeGetBoolean( |
| 4410 | 'bitmessagesettings', 'dontconnect') |
| 4411 | if myapp._firstrun: |
| 4412 | myapp.showConnectDialog() # ask the user if we may connect |
| 4413 | myapp.ui.updateNetworkSwitchMenuLabel() |
| 4414 | |
| 4415 | # try: |
| 4416 | # if BMConfigParser().get('bitmessagesettings', 'mailchuck') < 1: |
| 4417 | # myapp.showMigrationWizard(BMConfigParser().get('bitmessagesettings', 'mailchuck')) |
| 4418 | # except: |
| 4419 | # myapp.showMigrationWizard(0) |
| 4420 | |
| 4421 | # only show after wizards and connect dialogs have completed |
| 4422 | if not BMConfigParser().getboolean('bitmessagesettings', 'startintray'): |
| 4423 | myapp.show() |
| 4424 | |
| 4425 | sys.exit(app.exec_()) |
nothing calls this directly
no test coverage detected