Browse Source

Fixed incorrect test script interaction with settings load failure

Brian Fiete 2 tháng trước cách đây
mục cha
commit
2ff7f208c3
2 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 2 1
      IDE/src/IDEApp.bf
  2. 1 0
      IDE/src/Settings.bf

+ 2 - 1
IDE/src/IDEApp.bf

@@ -169,6 +169,7 @@ namespace IDE
 		public bool mDbgDelayedAutocomplete;
 		public bool mDbgTimeAutocomplete;
 		public bool mDbgPerfAutocomplete;
+		public bool mStopPending;
 		public BeefConfig mBeefConfig = new BeefConfig() ~ delete _;
 		public List<String> mDeferredFails = new .() ~ DeleteContainerAndItems!(_);
 		public String mInitialCWD = new .() ~ delete _;
@@ -15171,7 +15172,7 @@ namespace IDE
 			if (mUpdateCnt % 120 == 0)
 				VerifyModifiedBuffers();
 
-			if (!mSettings.mSettingsValid)
+			if (mStopPending)
 				Stop();
 
 			if (mWantShowOutput)

+ 1 - 0
IDE/src/Settings.bf

@@ -1359,6 +1359,7 @@ namespace IDE
 #endif
 					if (result == 3) // Abort
 					{
+						gApp.mStopPending = true;
 						mSettingsValid = false;
 						return;
 					}