Fix example data dialog to respect 'No' response
Previously, clicking "No" in the confirmation dialog would still proceed to load example data. Now both Cancel and No properly abort the operation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -180,7 +180,7 @@ namespace CutList.Presenters
|
|||||||
{
|
{
|
||||||
var result = _view.AskYesNoCancel("Are you sure you want to clear the current data?", "Clear Data");
|
var result = _view.AskYesNoCancel("Are you sure you want to clear the current data?", "Clear Data");
|
||||||
|
|
||||||
if (result == null) // Cancel
|
if (result == null || !result.Value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LoadExampleData(result.Value);
|
LoadExampleData(result.Value);
|
||||||
|
|||||||
Reference in New Issue
Block a user