mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 09:10:08 -06:00
properly sync up menus between windows of a same instance
This commit is contained in:
@ -240,6 +240,17 @@ void EmuInstance::deleteAllWindows()
|
||||
deleteWindow(i, true);
|
||||
}
|
||||
|
||||
void EmuInstance::doOnAllWindows(std::function<void(MainWindow*)> func, int exclude)
|
||||
{
|
||||
for (int i = 0; i < kMaxWindows; i++)
|
||||
{
|
||||
if (i == exclude) continue;
|
||||
if (!windowList[i]) continue;
|
||||
|
||||
func(windowList[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void EmuInstance::broadcastCommand(int cmd, QVariant param)
|
||||
{
|
||||
|
Reference in New Issue
Block a user