UI: Add function to get main window more easily
Adds OBSBasic::Get() to just quickly return the main window.
This commit is contained in:
parent
a0eab1a2ad
commit
b89c2b76d3
2 changed files with 7 additions and 0 deletions
|
|
@ -6857,3 +6857,8 @@ void OBSBasic::ResizeOutputSizeOfSource()
|
|||
ResetVideo();
|
||||
on_actionFitToScreen_triggered();
|
||||
}
|
||||
|
||||
OBSBasic *OBSBasic::Get()
|
||||
{
|
||||
return reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue