mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
DisplaySettings: Restrict selection of fixed-width fonts
Only allow fixed-width fonts to be the system fixed-width font. :^)
This commit is contained in:
parent
59fd1f40ce
commit
be3f4c86de
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ FontSettingsWidget::FontSettingsWidget()
|
|||
};
|
||||
|
||||
fixed_width_font_button.on_click = [this, &fixed_width_font_label] {
|
||||
auto font_picker = GUI::FontPicker::construct(window(), &fixed_width_font_label.font(), false);
|
||||
auto font_picker = GUI::FontPicker::construct(window(), &fixed_width_font_label.font(), true);
|
||||
if (font_picker->exec() == GUI::Dialog::ExecOK) {
|
||||
fixed_width_font_label.set_font(font_picker->font());
|
||||
fixed_width_font_label.set_text(font_picker->font()->qualified_name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue