mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-28 23:54:59 +00:00

- use a single filter for both unstage and staged files - show confirm dialog if staged files are displayed partially Signed-off-by: leo <longshuang@msn.cn>
26 lines
446 B
C#
26 lines
446 B
C#
using System;
|
|
|
|
namespace SourceGit.ViewModels
|
|
{
|
|
public class ConfirmCommit
|
|
{
|
|
public string Message
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public ConfirmCommit(string message, Action onSure)
|
|
{
|
|
Message = message;
|
|
_onSure = onSure;
|
|
}
|
|
|
|
public void Continue()
|
|
{
|
|
_onSure?.Invoke();
|
|
}
|
|
|
|
private Action _onSure;
|
|
}
|
|
}
|