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:
AJ
2025-11-23 18:04:17 -05:00
parent 7e0607cc13
commit c612a40a46

View File

@@ -180,7 +180,7 @@ namespace CutList.Presenters
{
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;
LoadExampleData(result.Value);