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/WindowActionRouter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/WindowActionRouter.cpp') diff --git a/src/WindowActionRouter.cpp b/src/WindowActionRouter.cpp index 1c68a35..ba479f0 100644 --- a/src/WindowActionRouter.cpp +++ b/src/WindowActionRouter.cpp @@ -94,6 +94,12 @@ void WindowActionRouter::initialize(Configuration *config) { [this](WebViewId webview_id) { WITH_WEBVIEW_WINDOW(webview_id, window, { window->scroll_to_bottom(webview_id); }); }); + connect(&runtime, &LuaRuntime::decoration_set_enabled, this, + [this](DecorationType type, bool enabled) { + qDebug() << "routing" << type << enabled << window_map.size(); + for (auto &win_match : window_map) + win_match.second->set_decoration_enabled(type, enabled); + }); } void WindowActionRouter::find_current_search_text(WebViewId webview_id, bool forward) { -- cgit v1.3.1