mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 05:35:00 +00:00
ux: if there are no local changes, show different confirm message (#1143)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
8b5f491e34
commit
768b324356
5 changed files with 14 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue