Avoid referencing _oldResource when it’s null

This commit is contained in:
DB p 2025-03-24 19:08:54 +09:00
parent 60a1e5e685
commit 2b67f5bc8d

View file

@ -75,7 +75,6 @@ namespace Flow.Launcher.Core.Resource
Log.Error("Current theme resource not found. Initializing with default theme.");
_oldTheme = Constant.DefaultTheme;
};
_oldTheme = Path.GetFileNameWithoutExtension(_oldResource.Source.AbsolutePath);
}
#endregion