mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-08-03 03:28:54 -06:00
for config dialogs that reflect changes instantly, make behavior of window close button consistent with that of Cancel button
This commit is contained in:
@ -44,8 +44,15 @@ uiEntry* txMicWavPath;
|
||||
int oldvolume;
|
||||
|
||||
|
||||
void RevertSettings()
|
||||
{
|
||||
Config::AudioVolume = oldvolume;
|
||||
}
|
||||
|
||||
|
||||
int OnCloseWindow(uiWindow* window, void* blarg)
|
||||
{
|
||||
RevertSettings();
|
||||
opened = false;
|
||||
return 1;
|
||||
}
|
||||
@ -69,7 +76,7 @@ void OnMicWavBrowse(uiButton* btn, void* blarg)
|
||||
|
||||
void OnCancel(uiButton* btn, void* blarg)
|
||||
{
|
||||
Config::AudioVolume = oldvolume;
|
||||
RevertSettings();
|
||||
|
||||
uiControlDestroy(uiControl(win));
|
||||
opened = false;
|
||||
|
Reference in New Issue
Block a user