#318, app data dir need be created first

This commit is contained in:
Kang Yu 2024-05-07 21:25:08 -07:00
parent be4e90ecd5
commit 6d7d26d9e7

View file

@ -271,13 +271,6 @@ namespace PersistentWindows.SystrayShell
#endif #endif
AppdataFolder = appDataFolder; AppdataFolder = appDataFolder;
if (!waiting_taskbar)
{
bool ready = WaitTaskbarReady();
if (!ready)
return;
}
// default icons // default icons
IdleIcon = legacy_icon ? Properties.Resources.pwIcon2 : Properties.Resources.pwIcon; IdleIcon = legacy_icon ? Properties.Resources.pwIcon2 : Properties.Resources.pwIcon;
var iconHandle = Properties.Resources.pwIconBusy.GetHicon(); var iconHandle = Properties.Resources.pwIconBusy.GetHicon();
@ -363,6 +356,13 @@ namespace PersistentWindows.SystrayShell
return; return;
} }
if (!waiting_taskbar)
{
bool ready = WaitTaskbarReady();
if (!ready)
return;
}
if (splash) if (splash)
{ {
StartSplashForm(); StartSplashForm();