Skip to content

Commit

Permalink
UI: Add new scene at current row
Browse files Browse the repository at this point in the history
Instead of having a new scene at the bottom of the list, have
it added after the current item.
  • Loading branch information
cg2121 authored and Lain-B committed Jul 30, 2023
1 parent 5569139 commit 5e198db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/window-basic-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5e198db

Please sign in to comment.