Fix another mistake checking for Config::Flag_AutoHideSupport

This commit is contained in:
Sergio Martins
2023-05-16 10:01:41 +01:00
parent 0fe194769d
commit 59a81fbe62

View File

@@ -51,7 +51,7 @@ TitleBar::TitleBar(FloatingWindow *parent)
, m_frame(nullptr) , m_frame(nullptr)
, m_floatingWindow(parent) , m_floatingWindow(parent)
, m_genericWidget(nullptr) , m_genericWidget(nullptr)
, m_supportsAutoHide(Config::self().flags() & Config::Flag_AutoHideSupport) , m_supportsAutoHide((Config::self().flags() & Config::Flag_AutoHideSupport) == Config::Flag_AutoHideSupport)
{ {
connect(m_floatingWindow, &FloatingWindow::numFramesChanged, this, &TitleBar::updateButtons); connect(m_floatingWindow, &FloatingWindow::numFramesChanged, this, &TitleBar::updateButtons);
connect(m_floatingWindow, &FloatingWindow::windowStateChanged, this, &TitleBar::updateMaximizeButton); connect(m_floatingWindow, &FloatingWindow::windowStateChanged, this, &TitleBar::updateMaximizeButton);