mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 00:24:59 +00:00
enhance: new confirm empty commit dialog (#1143)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
898a8bc69a
commit
506af95963
14 changed files with 144 additions and 14 deletions
|
@ -1679,12 +1679,11 @@ namespace SourceGit.ViewModels
|
|||
{
|
||||
if ((autoStage && _count == 0) || (!autoStage && _staged.Count == 0))
|
||||
{
|
||||
var confirmMessage = App.Text("WorkingCopy.ConfirmCommitWithoutFiles");
|
||||
App.OpenDialog(new Views.ConfirmCommit()
|
||||
App.OpenDialog(new Views.ConfirmEmptyCommit()
|
||||
{
|
||||
DataContext = new ConfirmCommit(confirmMessage, () =>
|
||||
DataContext = new ConfirmEmptyCommit(_count > 0, stageAll =>
|
||||
{
|
||||
DoCommit(autoStage, autoPush, true, confirmWithFilter);
|
||||
DoCommit(stageAll, autoPush, true, confirmWithFilter);
|
||||
})
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue