mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-18 20:21:56 -04:00
UI: Add function to get main window more easily
Adds OBSBasic::Get() to just quickly return the main window.
This commit is contained in:
1 parent
a0eab1a2ad
commit
b89c2b76d3
2 files changed
+7
No files matched your search
@@ -6857,3 +6857,8 @@ void OBSBasic::ResizeOutputSizeOfSource()
|
||||
ResetVideo();
|
||||
on_actionFitToScreen_triggered();
|
||||
}
|
||||
|
||||
OBSBasic *OBSBasic::Get()
|
||||
{
|
||||
return reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
|
||||
}
|
||||
Reference in new issue
Block a user