mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-11 17:37:31 +00:00
fix: Black window flash when starting the app
This commit is contained in:
parent
ec7c952270
commit
334171267b
@ -58,15 +58,6 @@ Future<void> main(List<String> rawArgs) async {
|
|||||||
await DesktopTools.window.setPreventClose(true);
|
await DesktopTools.window.setPreventClose(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
await DesktopTools.ensureInitialized(
|
|
||||||
DesktopWindowOptions(
|
|
||||||
hideTitleBar: true,
|
|
||||||
title: "Spotube",
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
minimumSize: const Size(300, 700),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
await SystemTheme.accentColor.load();
|
await SystemTheme.accentColor.load();
|
||||||
|
|
||||||
if (!kIsWeb) {
|
if (!kIsWeb) {
|
||||||
@ -107,6 +98,15 @@ Future<void> main(List<String> rawArgs) async {
|
|||||||
path: hiveCacheDir,
|
path: hiveCacheDir,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await DesktopTools.ensureInitialized(
|
||||||
|
DesktopWindowOptions(
|
||||||
|
hideTitleBar: true,
|
||||||
|
title: "Spotube",
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
minimumSize: const Size(300, 700),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
Catcher2(
|
Catcher2(
|
||||||
enableLogger: arguments["verbose"],
|
enableLogger: arguments["verbose"],
|
||||||
debugConfig: Catcher2Options(
|
debugConfig: Catcher2Options(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user