mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-26 07:48:46 -04:00
macos cannot have widgets/items with ID of 0
This commit is contained in:
1 parent
b002c78fe7
commit
f03d90639a
1 file changed
+2
-2
@@ -318,7 +318,7 @@ void OBSBasic::AddSourcePopup()
|
||||
type, wxGetApp().GetLocale());
|
||||
|
||||
types.push_back(type);
|
||||
popup->Append((int)idx, wxString(name, wxConvUTF8));
|
||||
popup->Append((int)idx+1, wxString(name, wxConvUTF8));
|
||||
|
||||
idx++;
|
||||
}
|
||||
@@ -326,7 +326,7 @@ void OBSBasic::AddSourcePopup()
|
||||
if (idx) {
|
||||
int id = WXDoPopupMenu(this, popup.get());
|
||||
if (id != -1)
|
||||
AddSource(scene, types[id]);
|
||||
AddSource(scene, types[id-1]);
|
||||
}
|
||||
|
||||
obs_scene_release(scene);
|
||||
|
||||
Reference in new issue
Block a user