From 6d7d26d9e791ea63562d53d70a70916ce84774eb Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Tue, 7 May 2024 21:25:08 -0700 Subject: [PATCH] #318, app data dir need be created first --- .../SystrayShell/Program.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs index c05204c..f17ec94 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs @@ -271,13 +271,6 @@ namespace PersistentWindows.SystrayShell #endif AppdataFolder = appDataFolder; - if (!waiting_taskbar) - { - bool ready = WaitTaskbarReady(); - if (!ready) - return; - } - // default icons IdleIcon = legacy_icon ? Properties.Resources.pwIcon2 : Properties.Resources.pwIcon; var iconHandle = Properties.Resources.pwIconBusy.GetHicon(); @@ -363,6 +356,13 @@ namespace PersistentWindows.SystrayShell return; } + if (!waiting_taskbar) + { + bool ready = WaitTaskbarReady(); + if (!ready) + return; + } + if (splash) { StartSplashForm();