🐛 Fix infinite starting up

This commit is contained in:
LittleSheep 2025-03-30 20:37:04 +08:00
parent 8ed847d870
commit 51a387851f

View File

@ -357,7 +357,6 @@ class _AppSplashScreenState extends State<_AppSplashScreen> with TrayListener {
notify.listen(); notify.listen();
try { try {
notify.registerPushNotifications(); notify.registerPushNotifications();
} catch (_) {}
if (!mounted) return; if (!mounted) return;
_setPhaseText('stickers'); _setPhaseText('stickers');
final sticker = context.read<SnStickerProvider>(); final sticker = context.read<SnStickerProvider>();
@ -375,6 +374,7 @@ class _AppSplashScreenState extends State<_AppSplashScreen> with TrayListener {
final ct = context.read<ChatChannelProvider>(); final ct = context.read<ChatChannelProvider>();
await ct.refreshAvailableChannels(); await ct.refreshAvailableChannels();
_setPhaseText('done'); _setPhaseText('done');
} catch (_) {}
_playIntro(); _playIntro();
} }
} catch (err) { } catch (err) {