mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
GameList: Prevent opening Properties multiple times for the same game
This commit is contained in:
@ -566,6 +566,15 @@ void GameList::OpenProperties()
|
||||
if (!game)
|
||||
return;
|
||||
|
||||
auto property_windows = this->findChildren<PropertiesDialog*>();
|
||||
auto it =
|
||||
std::ranges::find(property_windows, game->GetFilePath(), &PropertiesDialog::GetFilePath);
|
||||
if (it != property_windows.end())
|
||||
{
|
||||
(*it)->raise();
|
||||
return;
|
||||
}
|
||||
|
||||
PropertiesDialog* properties = new PropertiesDialog(this, *game);
|
||||
|
||||
connect(properties, &PropertiesDialog::OpenGeneralSettings, this, &GameList::OpenGeneralSettings);
|
||||
|
Reference in New Issue
Block a user