code_style: change static methods of ViewModels.Preference to member function

This commit is contained in:
leo
2024-07-22 15:34:31 +08:00
parent 1e0a2ab5f7
commit 720b2b65f3
13 changed files with 65 additions and 71 deletions

View File

@@ -31,7 +31,7 @@ namespace SourceGit.ViewModels
CallUIThread(() =>
{
var normalizedPath = _targetPath.Replace("\\", "/");
Preference.FindOrAddNodeByRepositoryPath(normalizedPath, _parentNode, true);
Preference.Instance.FindOrAddNodeByRepositoryPath(normalizedPath, _parentNode, true);
});
return true;