Skip to content

Commit 2b67f5b

Browse files
committed
Avoid referencing _oldResource when it’s null
1 parent 60a1e5e commit 2b67f5b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Flow.Launcher.Core/Resource/Theme.cs

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public Theme(IPublicAPI publicAPI, Settings settings)
7575
Log.Error("Current theme resource not found. Initializing with default theme.");
7676
_oldTheme = Constant.DefaultTheme;
7777
};
78-
_oldTheme = Path.GetFileNameWithoutExtension(_oldResource.Source.AbsolutePath);
7978
}
8079

8180
#endregion

0 commit comments

Comments
 (0)