Skip to content

Commit

Permalink
Revert "Disable Tool Box on Linux (fixes #2741)"
Browse files Browse the repository at this point in the history
This reverts commit fe6bf7b.
  • Loading branch information
YoshiRulz committed Sep 30, 2021
1 parent dc090b8 commit 0788525
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
4 changes: 1 addition & 3 deletions src/BizHawk.Client.EmuHawk/MainForm.Hotkey.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Linq;

using BizHawk.Common;
using BizHawk.Emulation.Common;
using BizHawk.Emulation.Cores.Consoles.Nintendo.NDS;
using BizHawk.Emulation.Cores.Nintendo.Gameboy;
Expand Down Expand Up @@ -351,7 +349,7 @@ private bool CheckHotkey(string trigger)
Tools.Load<TAStudio>();
break;
case "ToolBox":
if (!OSTailoredCode.IsUnixHost) Tools.Load<ToolBox>();
Tools.Load<ToolBox>();
break;
case "Virtual Pad":
Tools.Load<VirtualpadTool>();
Expand Down
6 changes: 0 additions & 6 deletions src/BizHawk.Client.EmuHawk/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,6 @@ void MainForm_MouseClick(object sender, MouseEventArgs e)
#else
SynclessRecordingMenuItem.Enabled = false;
#endif
if (OSTailoredCode.IsUnixHost)
{
ToolBoxMenuItem.Enabled = false;
ToolBoxMenuItem.Visible = false;
toolStripSeparator12.Visible = false;
}

Game = GameInfo.NullInstance;
_throttle = new Throttle();
Expand Down
6 changes: 0 additions & 6 deletions src/BizHawk.Client.EmuHawk/tools/ToolBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ public ToolBox()

private void ToolBox_Load(object sender, EventArgs e)
{
if (OSTailoredCode.IsUnixHost)
{
Close();
return;
}
Location = new Point(
Owner.Location.X + Owner.Size.Width,
Owner.Location.Y
Expand All @@ -38,7 +33,6 @@ private void ToolBox_Load(object sender, EventArgs e)

public override void Restart()
{
if (OSTailoredCode.IsUnixHost) return;
SetTools();
SetSize();

Expand Down

0 comments on commit 0788525

Please sign in to comment.