Skip to content

Commit

Permalink
Fix loading of Basic Bot under Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Oct 8, 2021
1 parent e5c2e7c commit 1dbcdcd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
using BizHawk.Emulation.Common;
using BizHawk.Client.Common;
using BizHawk.Client.EmuHawk.Properties;
using BizHawk.Common;

namespace BizHawk.Client.EmuHawk
{
public partial class BasicBot : ToolFormBase, IToolFormAutoConfig
public sealed partial class BasicBot : ToolFormBase, IToolFormAutoConfig
{
private string _currentFileName = "";

Expand Down Expand Up @@ -100,6 +101,12 @@ public BasicBot()
PlayBestButton.Image = Resources.Play;
ClearBestButton.Image = Resources.Close;
StopBtn.Image = Resources.Stop;
if (OSTailoredCode.IsUnixHost)
{
AutoSize = false;
Margin = new(0, 0, 0, 8);
}

Settings = new BasicBotSettings();

_comparisonBotAttempt = new BotAttempt();
Expand Down Expand Up @@ -133,6 +140,8 @@ private void BasicBot_Load(object sender, EventArgs e)
return;
}

if (OSTailoredCode.IsUnixHost) ClientSize = new(707, 587);

_previousInvisibleEmulation = InvisibleEmulationCheckBox.Checked = Settings.InvisibleEmulation;
_previousDisplayMessage = Config.DisplayMessages;
}
Expand Down

0 comments on commit 1dbcdcd

Please sign in to comment.