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

Added safe mode toggle to Preferences menu

This commit is contained in:
Brian Fiete 2021-12-21 08:29:15 -05:00
parent d4460f0236
commit d5642b6558
5 changed files with 27 additions and 6 deletions

View file

@ -69,6 +69,12 @@ namespace Beefy.sys
Modify(mText, mHotKey, mBitmap, mEnabled, mCheckState, mRadioCheck);
}
public void SetCheckState(int32 checkState)
{
mCheckState = checkState;
Modify(mText, mHotKey, mBitmap, mEnabled, mCheckState, mRadioCheck);
}
public void SetHotKey(StringView hotKey)
{
if (hotKey.IsNull)

View file

@ -10,6 +10,7 @@ namespace Beefy.widgets
public interface IMenu
{
void SetDisabled(bool enable);
void SetCheckState(int32 checkState);
}
public interface IMenuContainer

View file

@ -616,5 +616,10 @@ namespace Beefy.widgets
{
mDisabled = disabled;
}
public void SetCheckState(int32 checkState)
{
}
}
}