Skip to content

Commit

Permalink
flir checkbox no longer visible when flirlogic is not enabled in mbFlir
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnq committed Sep 17, 2024
1 parent eee0cf5 commit 4608ba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/mbControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ MaterialSwitch CreateCheckBox(string text, bool isEnabled, EventHandler checkedC
/* --- --- --- Tab 2 goes here --- --- --- */

mbPanelForTab2.Controls.Add(mbEnableZoomModeCheckBox);
mbPanelForTab2.Controls.Add(mbEnableFlirCheckBox);
if (mbnqFLIR.mbEnableFlirLogic) mbPanelForTab2.Controls.Add(mbEnableFlirCheckBox);
mbPanelForTab2.Controls.Add(mbHideCrosshairCheckBox);
mbPanelForTab2.Controls.Add(mbAntiCapsCheckBox);
mbPanelForTab2.Controls.Add(mbDisableSoundCheckBox);
Expand Down
4 changes: 2 additions & 2 deletions core/mbFLIR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class mbnqFLIR : Form
private int green = 192;
private int blue = 192;
private Timer repaintTimer;
public static bool mbEnableFlirLogic = false; // for general enabling and disabling the flir logic
public static bool mbEnableFlir = false; // for dynamic enabling with checkbox
public static bool mbEnableFlirLogic = false; // set here, for general enabling and disabling the flir logic
public static bool mbEnableFlir = false; // init only, for dynamic enabling with checkbox

public mbnqFLIR()
{
Expand Down

0 comments on commit 4608ba7

Please sign in to comment.