fix: cannot minimize window by clicking taskbar icon
This commit is contained in:
parent
90d0869b5e
commit
1cb67b48f4
|
@ -30,9 +30,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||||
QMainWindow(parent)
|
QMainWindow(parent)
|
||||||
{
|
{
|
||||||
if (Settings::instance()->stayOnTop()) {
|
if (Settings::instance()->stayOnTop()) {
|
||||||
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint | Qt::WindowStaysOnTopHint);
|
||||||
} else {
|
} else {
|
||||||
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
|
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
|
||||||
}
|
}
|
||||||
|
|
||||||
this->setAttribute(Qt::WA_TranslucentBackground, true);
|
this->setAttribute(Qt::WA_TranslucentBackground, true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user