mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Set OBS icon to projector and stats window
Closes obsproject/obs-studio#1259
This commit is contained in:
parent
0acf7e1a09
commit
f61090e1ea
|
@ -136,6 +136,7 @@ OBSBasicStats::OBSBasicStats(QWidget *parent)
|
|||
Qt::WindowMinimizeButtonHint |
|
||||
Qt::WindowCloseButtonHint);
|
||||
setWindowTitle(QTStr("Basic.Stats"));
|
||||
setWindowIcon(QIcon(":/res/images/obs.png"));
|
||||
setWindowModality(Qt::NonModal);
|
||||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
||||
|
|
|
@ -32,7 +32,9 @@ OBSProjector::OBSProjector(QWidget *widget, obs_source_t *source_, int monitor,
|
|||
isWindow = savedMonitor < 0;
|
||||
type = type_;
|
||||
|
||||
if (!isWindow) {
|
||||
if (isWindow) {
|
||||
setWindowIcon(QIcon(":/res/images/obs.png"));
|
||||
} else {
|
||||
setWindowFlags(Qt::FramelessWindowHint |
|
||||
Qt::X11BypassWindowManagerHint);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue