diff --git a/src/window.cpp b/src/window.cpp index 5af0b0d..d656e0d 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -48,6 +48,9 @@ void MainWindow::initWindow() { _tablePage = new CBTable(this); addPageNode("剪贴板历史", _tablePage, ElaIconType::TableTree); + + this->setIsDefaultClosed(false); + connect(this, &MainWindow::closeButtonClicked, this, [=]() { setVisible(false); }); } void MainWindow::createActions() {