Browse Source

draft refresh method

CPP-GTK4
yggverse 2 months ago
parent
commit
8d74798edd
  1. 3
      src/app/browser/main/tab/page/navbar.cpp
  2. 11
      src/app/browser/main/tab/page/navbar/history.cpp
  3. 2
      src/app/browser/main/tab/page/navbar/history.hpp

3
src/app/browser/main/tab/page/navbar.cpp

@ -107,6 +107,9 @@ void Navbar::refresh() @@ -107,6 +107,9 @@ void Navbar::refresh()
navbarUpdate->set_sensitive(
navbarRequest->get_text_length() > 0
);
// Refresh history widget
navbarHistory->refresh();
}
// Setters

11
src/app/browser/main/tab/page/navbar/history.cpp

@ -28,3 +28,14 @@ History::~History() @@ -28,3 +28,14 @@ History::~History()
delete back;
delete forward;
};
void History::refresh()
{
back->set_sensitive(
false // @TODO
);
forward->set_sensitive(
false // @TODO
);
}

2
src/app/browser/main/tab/page/navbar/history.hpp

@ -29,6 +29,8 @@ namespace app::browser::main::tab::page::navbar @@ -29,6 +29,8 @@ namespace app::browser::main::tab::page::navbar
History();
~History();
void refresh();
};
}

Loading…
Cancel
Save