mirror of https://github.com/bsnes-emu/bsnes.git
target-bsnes: Expose screensaver supression in UI
The setting already existed and could be changed by manually editing the configuration file, but wasn't exposed in the UI. This commit adds the corresponding check box.
This commit is contained in:
parent
7d6c133024
commit
47d94196f6
|
@ -23,6 +23,9 @@ auto EmulatorSettings::create() -> void {
|
|||
nativeFileDialogs.setText("Use native file dialogs").setChecked(settings.general.nativeFileDialogs).onToggle([&] {
|
||||
settings.general.nativeFileDialogs = nativeFileDialogs.checked();
|
||||
});
|
||||
screenSaver.setText("Allow screensaver during emulation").setChecked(settings.general.screenSaver).onToggle([&] {
|
||||
settings.general.screenSaver = screenSaver.checked();
|
||||
});
|
||||
optionsSpacer.setColor({192, 192, 192});
|
||||
|
||||
fastForwardLabel.setText("Fast Forward").setFont(Font().setBold());
|
||||
|
|
|
@ -309,6 +309,7 @@ public:
|
|||
CheckLabel autoSaveStateOnUnload{&autoStateLayout, Size{0, 0}};
|
||||
CheckLabel autoLoadStateOnLoad{&autoStateLayout, Size{0, 0}};
|
||||
CheckLabel nativeFileDialogs{this, Size{~0, 0}};
|
||||
CheckLabel screenSaver{this, Size{~0, 0}};
|
||||
Canvas optionsSpacer{this, Size{~0, 1}};
|
||||
//
|
||||
Label fastForwardLabel{this, Size{~0, 0}, 2};
|
||||
|
|
Loading…
Reference in New Issue