Finally fixes an issue where PTM was not writing to preset files on Non-Windows systems #540

This commit is contained in:
Legedric 2018-06-06 06:06:19 +02:00
parent 51363b847f
commit 4a500e08bd
1 changed files with 1 additions and 0 deletions

View File

@ -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 {