Browse Source

draft refresh methods

CPP-GTK4
yggverse 4 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() @@ -28,14 +28,14 @@ void History::refresh()
{
Memory match;
historyBack->set_sensitive( // @TODO operate with action status
historyBack->refresh(
try_back(
match,
false
)
);
historyForward->set_sensitive( // @TODO operate with action status
historyForward->refresh(
try_forward(
match,
false

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

@ -16,3 +16,9 @@ Back::Back() @@ -16,3 +16,9 @@ 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 @@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
public:
Back();
void refresh(
const bool & ENABLED
);
};
}

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

@ -15,4 +15,10 @@ Forward::Forward() @@ -15,4 +15,10 @@ Forward::Forward()
set_tooltip_text(
_("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 @@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
public:
Forward();
void refresh(
const bool & ENABLED
);
};
}

Loading…
Cancel
Save