fix: Dispose _autoFetchTimer before _setting set to null (#792)
Some checks failed
Continuous Integration / Build (push) Has been cancelled
Continuous Integration / Prepare version string (push) Has been cancelled
Continuous Integration / Package (push) Has been cancelled

Signed-off-by: Gadfly <gadfly@gadfly.vip>
This commit is contained in:
GadflyFang 2024-12-06 15:09:14 +08:00 committed by GitHub
parent c2252266ce
commit c062f27081
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -427,12 +427,12 @@ namespace SourceGit.ViewModels
{ {
// Ignore // Ignore
} }
_settings = null;
_historiesFilterMode = Models.FilterMode.None;
_autoFetchTimer.Dispose(); _autoFetchTimer.Dispose();
_autoFetchTimer = null; _autoFetchTimer = null;
_settings = null;
_historiesFilterMode = Models.FilterMode.None;
_watcher?.Dispose(); _watcher?.Dispose();
_histories.Cleanup(); _histories.Cleanup();
_workingCopy.Cleanup(); _workingCopy.Cleanup();