From 2c7d36b4aa53ffa638a7aa7046767f10e7a152bf Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 25 Jul 2025 18:56:49 +0530 Subject: Expose decorations enable/disable lua api --- src/widgets/EdgeDecoration.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/widgets/EdgeDecoration.hpp') diff --git a/src/widgets/EdgeDecoration.hpp b/src/widgets/EdgeDecoration.hpp index c83227a..59390dc 100644 --- a/src/widgets/EdgeDecoration.hpp +++ b/src/widgets/EdgeDecoration.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -20,10 +21,10 @@ public: private: bool vertical; - WebView *webview = nullptr; + std::optional webview = std::nullopt; QWebEngineProfile *profile; - bool enabled; - QString html_content; + bool enabled = false; + QString html_content = ""; uint16_t size = 24; void setup_webview(); -- cgit v1.3.1