mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:07:34 +00:00
Browser: Implement listener for most config options
The only option leaved as TODO is ColorScheme.
This commit is contained in:
parent
d3fc3337ef
commit
43e463748d
3 changed files with 33 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "BookmarksBarWidget.h"
|
||||
#include "Tab.h"
|
||||
#include "WindowActions.h"
|
||||
#include <LibConfig/Listener.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/Window.h>
|
||||
|
||||
|
@ -18,7 +19,8 @@ namespace Browser {
|
|||
class CookieJar;
|
||||
class Tab;
|
||||
|
||||
class BrowserWindow final : public GUI::Window {
|
||||
class BrowserWindow final : public GUI::Window
|
||||
, public Config::Listener {
|
||||
C_OBJECT(BrowserWindow);
|
||||
|
||||
public:
|
||||
|
@ -45,6 +47,9 @@ private:
|
|||
ErrorOr<void> load_search_engines(GUI::Menu& settings_menu);
|
||||
void set_window_title_for_tab(Tab const&);
|
||||
|
||||
virtual void config_string_did_change(String const& domain, String const& group, String const& key, String const& value) override;
|
||||
virtual void config_bool_did_change(String const& domain, String const& group, String const& key, bool value) override;
|
||||
|
||||
RefPtr<GUI::Action> m_go_back_action;
|
||||
RefPtr<GUI::Action> m_go_forward_action;
|
||||
RefPtr<GUI::Action> m_go_home_action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue