mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
fix<ExternalMergeTool>: ignore type change on serialization
This commit is contained in:
parent
e7219b4278
commit
df16622335
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ namespace SourceGit.ViewModels {
|
|||
get => _externalMergeToolType;
|
||||
set {
|
||||
var changed = SetProperty(ref _externalMergeToolType, value);
|
||||
if (changed && !OperatingSystem.IsWindows() && value >= 0 && value < Models.ExternalMergeTools.Supported.Count) {
|
||||
if (changed && !OperatingSystem.IsWindows() && value > 0 && value < Models.ExternalMergeTools.Supported.Count) {
|
||||
var tool = Models.ExternalMergeTools.Supported[value];
|
||||
if (File.Exists(tool.Exec)) ExternalMergeToolPath = tool.Exec;
|
||||
else ExternalMergeToolPath = string.Empty;
|
||||
|
|
Loading…
Reference in a new issue