fix(control-center): settings button always opens settings window

This commit is contained in:
Ly-sec
2026-05-06 16:19:04 +02:00
parent 1613bdb46d
commit 7556f23a58
+1 -7
View File
@@ -802,13 +802,7 @@ void Application::initUi() {
// Panel manager must be before bar so widgets can access PanelManager::instance()
m_panelManager.initialize(m_wayland, &m_configService, &m_renderContext);
m_panelManager.setOpenSettingsWindowCallback([this]() {
if (m_settingsWindow.isOpen()) {
m_settingsWindow.close();
} else {
m_settingsWindow.open();
}
});
m_panelManager.setOpenSettingsWindowCallback([this]() { m_settingsWindow.open(); });
auto clipboardPanel = std::make_unique<ClipboardPanel>(&m_clipboardService, &m_configService, &m_thumbnailService);
clipboardPanel->setActivateCallback([this](const ClipboardEntry& entry) {
m_panelManager.close();