From cb537dddd25aea477961125e2c8115040bdcde66 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 27 Aug 2024 15:14:48 +0300 Subject: [PATCH] reorder methods --- src/app/browser/main/tab.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 7ecb0973..43bf3f9f 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -107,22 +107,6 @@ void Tab::close_all() } } -void Tab::update( - const int & PAGE_NUMBER -) { - auto pageWidget = get_nth_page( - PAGE_NUMBER - ); - - if (pageWidget != nullptr) - { - pageWidget->activate_action( - "page.update" - ); - } - -} // @TODO - void Tab::refresh( const int & PAGE_NUMBER ) { @@ -154,4 +138,20 @@ void Tab::refresh( // Refresh children widgets tabPage->refresh(); -} \ No newline at end of file +} + +void Tab::update( + const int & PAGE_NUMBER +) { + auto pageWidget = get_nth_page( + PAGE_NUMBER + ); + + if (pageWidget != nullptr) + { + pageWidget->activate_action( + "page.update" + ); + } + +} // @TODO \ No newline at end of file