UI: Bring stats to front if it already exists
If the menu item is triggered again, just bring it to the front instead of trying to recreate it again.
This commit is contained in:
@@ -5492,7 +5492,12 @@ void OBSBasic::on_autoConfigure_triggered()
|
||||
|
||||
void OBSBasic::on_stats_triggered()
|
||||
{
|
||||
stats.clear();
|
||||
if (!stats.isNull()) {
|
||||
stats->show();
|
||||
stats->raise();
|
||||
return;
|
||||
}
|
||||
|
||||
OBSBasicStats *statsDlg;
|
||||
statsDlg = new OBSBasicStats(nullptr);
|
||||
statsDlg->setModal(false);
|
||||
|
Reference in New Issue
Block a user