From c4e43f737ea7155bc8f40d53b16001e58b0c3902 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 29 Aug 2024 02:45:46 +0300 Subject: [PATCH] create tab history actions --- src/app/browser.cpp | 16 ++++++++++++++++ .../main/tab/page/navbar/history/back.cpp | 2 +- .../main/tab/page/navbar/history/forward.cpp | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/browser.cpp b/src/app/browser.cpp index 67eb3aef..6a351b34 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -110,6 +110,22 @@ Browser::Browser( ); } ); + + add_action( + "tab_history_back", + [this] + { + // @TODO + } + ); + + add_action( + "tab_history_forward", + [this] + { + // @TODO + } + ); } Browser::~Browser() diff --git a/src/app/browser/main/tab/page/navbar/history/back.cpp b/src/app/browser/main/tab/page/navbar/history/back.cpp index 6ec60c62..b52f2f74 100644 --- a/src/app/browser/main/tab/page/navbar/history/back.cpp +++ b/src/app/browser/main/tab/page/navbar/history/back.cpp @@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navbar::history; Back::Back() { set_action_name( - "tab.back" + "win.tab_history_back" ); set_icon_name( diff --git a/src/app/browser/main/tab/page/navbar/history/forward.cpp b/src/app/browser/main/tab/page/navbar/history/forward.cpp index 45968e04..624c84cd 100644 --- a/src/app/browser/main/tab/page/navbar/history/forward.cpp +++ b/src/app/browser/main/tab/page/navbar/history/forward.cpp @@ -5,7 +5,7 @@ using namespace app::browser::main::tab::page::navbar::history; Forward::Forward() { set_action_name( - "tab.forward" + "win.tab_history_forward" ); set_icon_name(