From 7db40483aa2edb9be380bae3c90d2f54eae4deb1 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 21 Aug 2025 12:12:09 +0530 Subject: Close devtools window when webview is closed --- src/LuaRuntimeApi.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/LuaRuntimeApi.hpp') diff --git a/src/LuaRuntimeApi.hpp b/src/LuaRuntimeApi.hpp index de8cc66..a198d50 100644 --- a/src/LuaRuntimeApi.hpp +++ b/src/LuaRuntimeApi.hpp @@ -134,6 +134,7 @@ int lua_api_keymap_set(lua_State *state) { int lua_api_view_current(lua_State *state) { auto &router = WindowActionRouter::instance(); + // TODO: get win id param auto view_id = router.fetch_current_view_id(); lua_pushinteger(state, view_id); return 1; @@ -141,6 +142,7 @@ int lua_api_view_current(lua_State *state) { int lua_view_list(lua_State *state) { auto &router = WindowActionRouter::instance(); + // TODO: get win id param auto views = router.fetch_webview_data_list(); lua_newtable(state); -- cgit v1.3.1