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:
parent
d4460f0236
commit
d5642b6558
5 changed files with 27 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace Beefy.widgets
|
|||
public interface IMenu
|
||||
{
|
||||
void SetDisabled(bool enable);
|
||||
void SetCheckState(int32 checkState);
|
||||
}
|
||||
|
||||
public interface IMenuContainer
|
||||
|
|
|
@ -616,5 +616,10 @@ namespace Beefy.widgets
|
|||
{
|
||||
mDisabled = disabled;
|
||||
}
|
||||
|
||||
public void SetCheckState(int32 checkState)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue