1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Added BeefIDE_d warning

This commit is contained in:
Brian Fiete 2019-09-23 14:55:26 -07:00
parent 6143c617b7
commit c67fbd66ba
3 changed files with 26 additions and 0 deletions

1
IDE/dist/userdict_install.txt vendored Normal file
View file

@ -0,0 +1 @@
workspace

View file

@ -1512,6 +1512,9 @@ namespace IDE
bool SaveDefaultLayoutData()
{
if (mMainWindow == null)
return true;
StructuredData sd = scope StructuredData();
sd.CreateNew();
@ -4683,6 +4686,7 @@ namespace IDE
AddMenuItem(subMenu, "&Goto Line...", "Goto Line");
AddMenuItem(subMenu, "Goto &Method...", "Goto Method");
AddMenuItem(subMenu, "&Rename Symbol", "Rename Symbol");
AddMenuItem(subMenu, "Show Fi&xit", "Show Fixit");
AddMenuItem(subMenu, "Find &All References", "Find All References");
AddMenuItem(subMenu, "Find C&lass...", "Find Class");
subMenu.AddMenuItem(null);
@ -9762,6 +9766,24 @@ namespace IDE
mSettings.Load();
mSettings.Apply();
mIsFirstRun = !mSettings.mLoadedSettings;
#if !CLI && BF_PLATFORM_WINDOWS
if (!mSettings.mTutorialsFinished.mRanDebug)
{
let exePath = scope String();
Environment.GetExecutableFilePath(exePath);
if (exePath.EndsWith("_d.exe", .OrdinalIgnoreCase))
{
if (Windows.MessageBoxA(default, "Are you sure you want to run the debug build of the Beef IDE? This is useful for debugging Beef issues but execution speed will be much slower.", "RUN DEBUG?",
Windows.MB_ICONQUESTION | Windows.MB_YESNO) != Windows.IDYES)
{
Stop();
return;
}
}
mSettings.mTutorialsFinished.mRanDebug = true;
}
#endif
}
DarkTheme aTheme = new DarkTheme();

View file

@ -634,6 +634,7 @@ namespace IDE
public struct TutorialsFinished
{
public bool mCtrlCursor;
public bool mRanDebug;
}
public bool mLoadedSettings;
@ -709,6 +710,7 @@ namespace IDE
using (sd.CreateObject("TutorialsFinished"))
{
sd.Add("CtrlCursor", mTutorialsFinished.mCtrlCursor);
sd.Add("RanDebug", mTutorialsFinished.mRanDebug);
}
String dataStr = scope String();
@ -764,6 +766,7 @@ namespace IDE
using (sd.Open("TutorialsFinished"))
{
sd.Get("CtrlCursor", ref mTutorialsFinished.mCtrlCursor);
sd.Get("RanDebug", ref mTutorialsFinished.mRanDebug);
}
}