Browse Source

draft refresh methods

CPP-GTK4
yggverse 2 months ago
parent
commit
45dc3b160a
  1. 4
      src/app/browser/main/tab/page/navigation/history.cpp
  2. 6
      src/app/browser/main/tab/page/navigation/history/back.cpp
  3. 4
      src/app/browser/main/tab/page/navigation/history/back.hpp
  4. 6
      src/app/browser/main/tab/page/navigation/history/forward.cpp
  5. 4
      src/app/browser/main/tab/page/navigation/history/forward.hpp

4
src/app/browser/main/tab/page/navigation/history.cpp

@ -28,14 +28,14 @@ void History::refresh()
{ {
Memory match; Memory match;
historyBack->set_sensitive( // @TODO operate with action status historyBack->refresh(
try_back( try_back(
match, match,
false false
) )
); );
historyForward->set_sensitive( // @TODO operate with action status historyForward->refresh(
try_forward( try_forward(
match, match,
false false

6
src/app/browser/main/tab/page/navigation/history/back.cpp

@ -16,3 +16,9 @@ Back::Back()
_("Back") _("Back")
); );
} }
void Back::refresh(
const bool & ENABLED
) {
// @TODO update action status
}

4
src/app/browser/main/tab/page/navigation/history/back.hpp

@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
public: public:
Back(); Back();
void refresh(
const bool & ENABLED
);
}; };
} }

6
src/app/browser/main/tab/page/navigation/history/forward.cpp

@ -16,3 +16,9 @@ Forward::Forward()
_("Forward") _("Forward")
); );
} }
void Forward::refresh(
const bool & ENABLED
) {
// @TODO update action status
}

4
src/app/browser/main/tab/page/navigation/history/forward.hpp

@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
public: public:
Forward(); Forward();
void refresh(
const bool & ENABLED
);
}; };
} }

Loading…
Cancel
Save