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:
parent
72d7adba67
commit
b3435f62d7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user