⚡ Optimize initialization
This commit is contained in:
parent
51a387851f
commit
4bd8ec54f1
@ -467,15 +467,22 @@ class _AppSplashScreenState extends State<_AppSplashScreen> with TrayListener {
|
|||||||
AppLifecycleListener(onExitRequested: _onExitRequested);
|
AppLifecycleListener(onExitRequested: _onExitRequested);
|
||||||
}
|
}
|
||||||
|
|
||||||
_trayInitialization();
|
try {
|
||||||
_hotkeyInitialization();
|
_trayInitialization();
|
||||||
_notifyInitialization();
|
_hotkeyInitialization();
|
||||||
_initialize().then((_) {
|
_notifyInitialization();
|
||||||
_postInitialization();
|
_initialize().then((_) {
|
||||||
_tryRequestRating();
|
_postInitialization();
|
||||||
_checkForUpdate();
|
_tryRequestRating();
|
||||||
setState(() => _isBusy = false);
|
_checkForUpdate();
|
||||||
});
|
setState(() => _isBusy = false);
|
||||||
|
}).catchError((err) {
|
||||||
|
logging.error('[Bootstrap] Unable to initialize app', err);
|
||||||
|
setState(() => _isBusy = false);
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
logging.error('[Bootstrap] Unable to initialize (pre-stage) app', err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<AppExitResponse> _onExitRequested() async {
|
Future<AppExitResponse> _onExitRequested() async {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user