mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
BUG-2079: Small changes for the bug, to help to track the issue. [skip ci]
This commit is contained in:
parent
01abc5e9e4
commit
4f289d838a
3 changed files with 34 additions and 7 deletions
|
@ -322,17 +322,17 @@ namespace GreenshotPlugin.Core {
|
|||
|
||||
/// <summary>Confirmation action to be applied.</summary>
|
||||
/// <param name="value">True if the credentials should be persisted.</param>
|
||||
public void Confirm(bool value) {
|
||||
switch (CredUi.CredUIConfirmCredentials(Target, value)) {
|
||||
public void Confirm(bool value)
|
||||
{
|
||||
var confirmResult = CredUi.CredUIConfirmCredentials(Target, value);
|
||||
switch (confirmResult) {
|
||||
case CredUi.ReturnCodes.NO_ERROR:
|
||||
break;
|
||||
|
||||
case CredUi.ReturnCodes.ERROR_INVALID_PARAMETER:
|
||||
// for some reason, this is encountered when credentials are overwritten
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new ApplicationException("Credential confirmation failed.");
|
||||
throw new ApplicationException($"Credential confirmation failed: {confirmResult}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue