From 8209cdfb1d85a40cc770f854d773c3a10f5ab576 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周三, 20 12月 2023 17:32:57 +0800
Subject: [PATCH] Add hot-switch to agent

---
 src/core/windowagentbase.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/core/windowagentbase.cpp b/src/core/windowagentbase.cpp
index c043838..159d678 100644
--- a/src/core/windowagentbase.cpp
+++ b/src/core/windowagentbase.cpp
@@ -60,6 +60,16 @@
         d->context->setWindowAttribute(key, var);
     }
 
+    bool WindowAgentBase::isEnabled() const {
+        Q_D(const WindowAgentBase);
+        return d->context->isEnabled();
+    }
+
+    void WindowAgentBase::setEnabled(bool enabled) {
+        Q_D(WindowAgentBase);
+        d->context->setEnabled(enabled);
+    }
+
     void WindowAgentBase::showSystemMenu(const QPoint &pos) {
         Q_D(WindowAgentBase);
         d->context->showSystemMenu(pos);

--
Gitblit v1.9.1