mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
code_style: change static methods of ViewModels.Preference to member function
This commit is contained in:
parent
1e0a2ab5f7
commit
720b2b65f3
13 changed files with 65 additions and 71 deletions
|
@ -965,7 +965,7 @@ namespace SourceGit.ViewModels
|
|||
var root = Path.GetFullPath(Path.Combine(_fullpath, submodule));
|
||||
var normalizedPath = root.Replace("\\", "/");
|
||||
|
||||
var node = Preference.FindNode(normalizedPath);
|
||||
var node = Preference.Instance.FindNode(normalizedPath);
|
||||
if (node == null)
|
||||
{
|
||||
node = new RepositoryNode()
|
||||
|
@ -996,7 +996,7 @@ namespace SourceGit.ViewModels
|
|||
|
||||
public void OpenWorktree(Models.Worktree worktree)
|
||||
{
|
||||
var node = Preference.FindNode(worktree.FullPath);
|
||||
var node = Preference.Instance.FindNode(worktree.FullPath);
|
||||
if (node == null)
|
||||
{
|
||||
node = new RepositoryNode()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue