diff --git a/repos/gems/src/server/terminal/main.cc b/repos/gems/src/server/terminal/main.cc index 3af4baebc0..30c2c40e41 100644 --- a/repos/gems/src/server/terminal/main.cc +++ b/repos/gems/src/server/terminal/main.cc @@ -70,6 +70,19 @@ struct Terminal::Main : Character_consumer Constructible _font { }; + void _handle_glyphs_changed() + { + /* + * Prevent call of '_handle_config' when the watch handler triggers + * at construction time. + */ + if (_font.constructed()) + _handle_config(); + } + + Watch_handler
_glyphs_changed_handler { + _root_dir, "fonts/monospace/regular/glyphs", *this, &Main::_handle_glyphs_changed }; + Color_palette _color_palette { }; Constructible _clipboard_rom { };