mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Save Python/Node paths as absolute, not relative
Removed logic that converted selected Python and Node executable paths to relative if within the program directory. Now, the selected file paths are stored as absolute paths without conversion. This simplifies path handling and improves clarity.
This commit is contained in:
parent
ab5a0b493d
commit
c59249d53a
1 changed files with 2 additions and 4 deletions
|
|
@ -377,8 +377,7 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
|
|||
);
|
||||
|
||||
if (!string.IsNullOrEmpty(selectedFile))
|
||||
// Convert to relative path if within ProgramDirectory for portability
|
||||
Settings.PluginSettings.PythonExecutablePath = Constant.ConvertToRelativePathIfPossible(selectedFile);
|
||||
Settings.PluginSettings.PythonExecutablePath = selectedFile;
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
|
@ -390,8 +389,7 @@ public partial class SettingsPaneGeneralViewModel : BaseModel
|
|||
);
|
||||
|
||||
if (!string.IsNullOrEmpty(selectedFile))
|
||||
// Convert to relative path if within ProgramDirectory for portability
|
||||
Settings.PluginSettings.NodeExecutablePath = Constant.ConvertToRelativePathIfPossible(selectedFile);
|
||||
Settings.PluginSettings.NodeExecutablePath = selectedFile;
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
|
|
|||
Loading…
Reference in a new issue