UI: Add new scene at current row

Instead of having a new scene at the bottom of the list, have
it added after the current item.
This commit is contained in:
cg2121
2023-01-22 23:31:51 -06:00
committed by Lain
parent 5569139c43
commit 5e198db647

View File

@@ -3130,7 +3130,7 @@ void OBSBasic::AddScene(OBSSource source)
QListWidgetItem *item = new QListWidgetItem(QT_UTF8(name));
SetOBSRef(item, OBSScene(scene));
ui->scenes->addItem(item);
ui->scenes->insertItem(ui->scenes->currentRow() + 1, item);
obs_hotkey_register_source(
source, "OBSBasic.SelectScene",