Sfoglia il codice sorgente

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

BDisp 3 mesi fa
parent
commit
7490ac9776
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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;