mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
optimize<*>: reduce memory usage
This commit is contained in:
parent
ca19d65f0e
commit
57c4a8394c
8 changed files with 99 additions and 16 deletions
|
@ -67,6 +67,15 @@ namespace SourceGit.ViewModels {
|
|||
_repo = repo;
|
||||
}
|
||||
|
||||
public void Cleanup() {
|
||||
_repo = null;
|
||||
if (_stashes != null) _stashes.Clear();
|
||||
_selectedStash = null;
|
||||
if (_changes != null) _changes.Clear();
|
||||
_selectedChange = null;
|
||||
_diffContext = null;
|
||||
}
|
||||
|
||||
public void Apply(object param) {
|
||||
if (param is Models.Stash stash) {
|
||||
Task.Run(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue