1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-25 02:58:02 +02:00

linux build quick fix

This commit is contained in:
M0N7Y5 2024-08-27 05:48:22 +02:00
parent 5a31cc35ba
commit 81a2f95279
7 changed files with 3841 additions and 3828 deletions

View file

@ -14,7 +14,7 @@ using System.Threading;
using IDE.util;
namespace IDE.ui;
#if BF_PLATFORM_WINDOWS
class ConsolePanel : Panel
{
class View : Widget
@ -369,7 +369,9 @@ class ConsolePanel : Panel
public virtual void Init()
{
#if BF_PLATFORM_WINDOWS
mConsoleProvider = new WinNativeConsoleProvider();
#endif
}
public override void Serialize(StructuredData data)
@ -809,4 +811,5 @@ class ConsolePanel : Panel
{
mView.SetFocus();
}
}
}
#endif

View file

@ -83,8 +83,11 @@ namespace IDE.ui
data.GetString("Type", type);
Panel panel = null;
#if BF_PLATFORM_WINDOWS
if (type == "")
return gApp.mTerminalPanel;
#endif
if (type == "CallStackPanel")
panel = gApp.mCallStackPanel;
@ -97,8 +100,10 @@ namespace IDE.ui
panel = gApp.mOutputPanel;
}
else if (type == "TerminalPanel")
{
{
#if BF_PLATFORM_WINDOWS
panel = gApp.mTerminalPanel;
#endif
}
else if (type == "ImmediatePanel")
{
@ -167,12 +172,16 @@ namespace IDE.ui
panel = gApp.mBookmarksPanel;
}
else if (type == "TerminalPanel")
{
{
#if BF_PLATFORM_WINDOWS
panel = gApp.mTerminalPanel;
#endif
}
else if (type == "ConsolePanel")
{
{
#if BF_PLATFORM_WINDOWS
panel = gApp.mConsolePanel;
#endif
}
if (panel != null)

View file

@ -3047,8 +3047,10 @@ namespace IDE.ui
if (!path.IsWhiteSpace)
{
#if BF_PLATFORM_WINDOWS
gApp.ShowTerminal();
gApp.mTerminalPanel.OpenDirectory(path);
#endif
}
});
}

View file

@ -13,7 +13,7 @@ using Beefy.utils;
using IDE.util;
namespace IDE.ui;
#if BF_PLATFORM_WINDOWS
class TerminalPanel : ConsolePanel
{
public override void Serialize(StructuredData data)
@ -57,4 +57,5 @@ class TerminalPanel : ConsolePanel
consoleProvider.Detach();
consoleProvider.Attach();
}
}
}
#endif