Finally fixes an issue where PTM was not writing to preset files on Non-Windows systems #540
This commit is contained in:
parent
51363b847f
commit
4a500e08bd
|
@ -40,6 +40,7 @@ namespace Monitor.Pages {
|
|||
if (requestBody.Length > 0) {
|
||||
SavePresetFileForm spff = JsonConvert.DeserializeObject<SavePresetFileForm>(requestBody);
|
||||
if (spff != null) {
|
||||
spff.FileName = spff.FileName.Replace(".PROPERTIES", ".properties");
|
||||
string settingPropertiesPath = PTMagicBasePath + Constants.PTMagicPathPresets + Path.DirectorySeparatorChar + spff.SettingName + Path.DirectorySeparatorChar + spff.FileName;
|
||||
if (System.IO.File.Exists(settingPropertiesPath)) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue