浏览代码

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

BDisp 3 月之前
父节点
当前提交
7490ac9776
共有 1 个文件被更改,包括 3 次插入1 次删除
  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;