From e8931d801189d96abfe77744da67e8e675c2e958 Mon Sep 17 00:00:00 2001 From: Colin Kiama Date: Tue, 21 Nov 2023 20:48:50 +0000 Subject: [PATCH] Fixes #1380 --- src/Application.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Application.vala b/src/Application.vala index 2c02f652e..ba3ba1812 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -137,7 +137,8 @@ namespace Scratch { // Create a new document if requested if (create_new_tab) { create_new_tab = false; - activate_action (MainWindow.ACTION_PREFIX + MainWindow.ACTION_NEW_TAB, null); + var active_window_action_group = active_window.get_action_group (MainWindow.ACTION_GROUP); + active_window_action_group.activate_action (MainWindow.ACTION_NEW_TAB, null); } }