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:
parent
6143c617b7
commit
c67fbd66ba
3 changed files with 26 additions and 0 deletions
1
IDE/dist/userdict_install.txt
vendored
Normal file
1
IDE/dist/userdict_install.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
workspace
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue