File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 44
55using System ;
66using System . Reflection ;
7+ using System . Threading . Tasks ;
78using System . Windows . Forms ;
89
910namespace WinDynamicDesktop
@@ -26,13 +27,16 @@ public AppContext(string[] args) : base(new HiddenForm())
2627 ipcManager . ProcessArgs ( args ) ;
2728
2829 InitializeTrayIcon ( ) ;
29- LocationManager . Initialize ( ) ;
3030 ThemeManager . Initialize ( ) ;
3131 ScriptManager . Initialize ( ) ;
3232
33- scheduler . RunAndUpdateLocation ( ) ;
34- LaunchSequence . NextStep ( ) ;
35- UpdateChecker . Initialize ( ) ;
33+ Task . Run ( ( ) =>
34+ {
35+ LocationManager . Initialize ( ) ;
36+ scheduler . RunAndUpdateLocation ( ) ;
37+ MainForm . Invoke ( ( ) => LaunchSequence . NextStep ( ) ) ;
38+ UpdateChecker . Initialize ( ) ;
39+ } ) ;
3640 }
3741
3842 private void CheckSingleInstance ( string [ ] args )
Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ private static DateTime SafeParse(string dateTime) // Added 2020-05-21
116116
117117 private static void UpdateToVersion4 ( string jsonText ) // Added 2020-01-01
118118 {
119+ if ( jsonText . IndexOf ( "\" changeSystemTheme\" " ) == - 1 )
120+ {
121+ return ;
122+ }
123+
119124 OldAppConfigV3 oldSettings ;
120125 try
121126 {
You can’t perform that action at this time.
0 commit comments