enhance: remember last selected on common actions (#231)

* the way to deal with local changes on checkout branch page
* the way to deal with local changes and should checkout after created on new branch page
* should fetch without tags on fetch page
* the way to deal with local changes and should fetch without tags on pull page
* should push all tags on push
This commit is contained in:
leo 2024-07-03 14:41:43 +08:00
parent 7e16058148
commit f4f4a26a64
No known key found for this signature in database
6 changed files with 68 additions and 27 deletions

View file

@ -30,9 +30,9 @@ namespace SourceGit.ViewModels
public bool NoTags
{
get;
set;
} = false;
get => _repo.Settings.FetchWithoutTags;
set => _repo.Settings.FetchWithoutTags = value;
}
public Fetch(Repository repo, Models.Remote preferedRemote = null)
{
@ -45,6 +45,7 @@ namespace SourceGit.ViewModels
public override Task<bool> Sure()
{
_repo.SetWatcherEnabled(false);
return Task.Run(() =>
{
if (FetchAllRemotes)