Explorar o código

Fixes #4120. ConfigurationEditor is handle No button the same as Cancel button (#4121)

BDisp hai 3 meses
pai
achega
7490ac9776
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Examples/UICatalog/Scenarios/ConfigurationEditor.cs

+ 3 - 1
Examples/UICatalog/Scenarios/ConfigurationEditor.cs

@@ -168,7 +168,9 @@ public class ConfigurationEditor : Scenario
 
                     break;
 
-                default:
+                case 1:
+                    // user decided not save changes
+                    break;
                 case -1 or 2:
                     // user cancelled
                     return;