diff --git a/src/app/browser/main/tab/page/navigation.cpp b/src/app/browser/main/tab/page/navigation.cpp index 852ba4eb..f3c10839 100644 --- a/src/app/browser/main/tab/page/navigation.cpp +++ b/src/app/browser/main/tab/page/navigation.cpp @@ -107,7 +107,7 @@ void Navigation::refresh( navigationHistory->refresh(); // Toggle update button sensibility - navigationUpdate->set_sensitive( + navigationUpdate->refresh( navigationRequest->get_text_length() > 0 ); diff --git a/src/app/browser/main/tab/page/navigation/update.cpp b/src/app/browser/main/tab/page/navigation/update.cpp index 7963d104..18657e8a 100644 --- a/src/app/browser/main/tab/page/navigation/update.cpp +++ b/src/app/browser/main/tab/page/navigation/update.cpp @@ -17,10 +17,9 @@ Update::Update( _("Update") ); - /* @TODO set_sensitive( false - ); */ + ); signal_clicked().connect( [this] @@ -28,4 +27,16 @@ Update::Update( action__update->activate(); } ); +} + +void Update::refresh( + const bool & ENABLED +) { + set_sensitive( + ENABLED + ); + + action__update->set_enabled( + ENABLED + ); } \ No newline at end of file diff --git a/src/app/browser/main/tab/page/navigation/update.hpp b/src/app/browser/main/tab/page/navigation/update.hpp index 9629462c..2f375539 100644 --- a/src/app/browser/main/tab/page/navigation/update.hpp +++ b/src/app/browser/main/tab/page/navigation/update.hpp @@ -17,6 +17,10 @@ namespace app::browser::main::tab::page::navigation Update( const Glib::RefPtr & ACTION__UPDATE ); + + void refresh( + const bool & ENABLED + ); }; }