We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f067b commit bf68cb3Copy full SHA for bf68cb3
source/Reloaded.Mod.Launcher.Lib/Commands/Mod/SetModImageCommand.cs
@@ -32,7 +32,9 @@ public void Execute(object? parameter)
32
string iconPath = Path.Combine(modDirectory, iconFileName);
33
34
// Copy image and set config file path.
35
- File.Copy(imagePath, iconPath, true);
+ if (!imagePath.Equals(iconPath, StringComparison.OrdinalIgnoreCase))
36
+ File.Copy(imagePath, iconPath, true);
37
+
38
_modTuple.Config.ModIcon = iconFileName;
39
_modTuple.Save();
40
}
0 commit comments