ux: if there are no local changes, show different confirm message (#1143)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-08 20:05:44 +08:00
parent 8b5f491e34
commit 768b324356
No known key found for this signature in database
5 changed files with 14 additions and 4 deletions

View file

@ -10,9 +10,16 @@ namespace SourceGit.ViewModels
private set;
}
public string Message
{
get;
private set;
}
public ConfirmEmptyCommit(bool hasLocalChanges, Action<bool> onSure)
{
HasLocalChanges = hasLocalChanges;
Message = App.Text(hasLocalChanges ? "ConfirmEmptyCommit.WithLocalChanges" : "ConfirmEmptyCommit.NoLocalChanges");
_onSure = onSure;
}