mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Do not quit program when last windows are projectors
Prevents the program from unintentionally quitting if the program is minimized to the task tray and the user closes all projectors Closes jp9000/obs-studio#737
This commit is contained in:
parent
d473b2da96
commit
7eee8de331
|
@ -19,6 +19,9 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_)
|
|||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
//disable application quit when last window closed
|
||||
setAttribute(Qt::WA_QuitOnClose, false);
|
||||
|
||||
installEventFilter(CreateShortcutFilter());
|
||||
|
||||
auto addDrawCallback = [this] ()
|
||||
|
|
Loading…
Reference in a new issue