fix<Preference>: fix UseWindowsTerminal can NOT be saved

This commit is contained in:
leo 2021-09-13 20:08:31 +08:00
parent 835dbc0ece
commit f190ce7927

View file

@ -21,7 +21,7 @@ namespace SourceGit.Views {
UpdateGitInfo(false);
HasWindowsTerminal = Models.ExecutableFinder.Find("wt.exe") != null;
if (HasWindowsTerminal) Models.Preference.Instance.General.UseWindowsTerminal = false;
if (!HasWindowsTerminal) Models.Preference.Instance.General.UseWindowsTerminal = false;
InitializeComponent();
}