mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 07:36:12 -05:00
UI: Add UpdateTitleBar function to basic UI
This commit is contained in:
@@ -150,13 +150,9 @@ OBSBasic::OBSBasic(QWidget *parent)
|
||||
ResizePreview(ovi.base_width, ovi.base_height);
|
||||
});
|
||||
|
||||
stringstream name;
|
||||
name << "OBS " << App()->GetVersionString();
|
||||
|
||||
installEventFilter(CreateShortcutFilter());
|
||||
|
||||
blog(LOG_INFO, "%s", name.str().c_str());
|
||||
setWindowTitle(QT_UTF8(name.str().c_str()));
|
||||
UpdateTitleBar();
|
||||
|
||||
connect(ui->scenes->itemDelegate(),
|
||||
SIGNAL(closeEditor(QWidget*,
|
||||
@@ -3385,3 +3381,13 @@ void OBSBasic::OpenSceneProjector()
|
||||
|
||||
OpenProjector(obs_scene_get_source(scene), monitor);
|
||||
}
|
||||
|
||||
void OBSBasic::UpdateTitleBar()
|
||||
{
|
||||
stringstream name;
|
||||
|
||||
name << "OBS " << App()->GetVersionString();
|
||||
|
||||
blog(LOG_INFO, "%s", name.str().c_str());
|
||||
setWindowTitle(QT_UTF8(name.str().c_str()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user