refactor: rename Models.Watcher.UpdateSubmodules to Models.Watcher.SetSubmodules

* run `dotnet format`
This commit is contained in:
leo 2024-08-09 11:33:37 +08:00
parent 71d2b295da
commit a75d50bf97
No known key found for this signature in database
7 changed files with 14 additions and 14 deletions

View file

@ -71,7 +71,7 @@ namespace SourceGit.Models
} }
} }
public void UpdateSubmodules(List<Submodule> submodules) public void SetSubmodules(List<Submodule> submodules)
{ {
lock (_lockSubmodule) lock (_lockSubmodule)
{ {

View file

@ -779,7 +779,7 @@ namespace SourceGit.ViewModels
{ {
var submodules = new Commands.QuerySubmodules(_fullpath).Result(); var submodules = new Commands.QuerySubmodules(_fullpath).Result();
if (_watcher != null) if (_watcher != null)
_watcher.UpdateSubmodules(submodules); _watcher.SetSubmodules(submodules);
Dispatcher.UIThread.Invoke(() => Submodules = submodules); Dispatcher.UIThread.Invoke(() => Submodules = submodules);
} }