feat: 修改关闭按钮的行为

This commit is contained in:
sleepwithoutbz
2025-09-23 12:26:35 +08:00
parent 16d8c5065e
commit c148f9ba22

View File

@@ -48,6 +48,9 @@ void MainWindow::initWindow() {
_tablePage = new CBTable(this); _tablePage = new CBTable(this);
addPageNode("剪贴板历史", _tablePage, ElaIconType::TableTree); addPageNode("剪贴板历史", _tablePage, ElaIconType::TableTree);
this->setIsDefaultClosed(false);
connect(this, &MainWindow::closeButtonClicked, this, [=]() { setVisible(false); });
} }
void MainWindow::createActions() { void MainWindow::createActions() {