From c4e34eb048f50fe047454a375dece610e1c4093f Mon Sep 17 00:00:00 2001
From: shenmo <jifengshenmo@outlook.com>
Date: Sun, 20 Oct 2024 13:22:53 +0800
Subject: [PATCH] fix: Hide buttons can't take effect

---
 spark-webapp-runtime/mainwindow.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/spark-webapp-runtime/mainwindow.cpp b/spark-webapp-runtime/mainwindow.cpp
index 2e51f26..e129e68 100644
--- a/spark-webapp-runtime/mainwindow.cpp
+++ b/spark-webapp-runtime/mainwindow.cpp
@@ -223,6 +223,8 @@ void MainWindow::initTitleBar()
 
     if (!m_isHideButton) {
         m_menu->addAction(m_hideButtons);
+    }else{
+        hideButtons(); // 修复指定hidebuttons之后没有生效
     }
 
     if (m_menu->actions().size() > 0) {