diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-25 18:56:49 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-25 18:56:49 +0530 |
| commit | 2c7d36b4aa53ffa638a7aa7046767f10e7a152bf (patch) | |
| tree | 679c34d6566f5a774bcd5f979af755cf3cfeac4f /src/WindowActionRouter.cpp | |
| parent | 51be15cd7c9f39276f27d416356744041e62c22c (diff) | |
| download | null-browser-2c7d36b4aa53ffa638a7aa7046767f10e7a152bf.tar.gz null-browser-2c7d36b4aa53ffa638a7aa7046767f10e7a152bf.zip | |
Expose decorations enable/disable lua api
Diffstat (limited to '')
| -rw-r--r-- | src/WindowActionRouter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |
