mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Userland: Make Window::set_main_widget() non-fallible
This commit is contained in:
committed by
Andreas Kling
parent
c9297126db
commit
3aa49f268c
@@ -12,7 +12,7 @@ KeymapStatusWindow::KeymapStatusWindow()
|
||||
{
|
||||
set_window_type(GUI::WindowType::Applet);
|
||||
set_has_alpha_channel(true);
|
||||
m_status_widget = set_main_widget<KeymapStatusWidget>().release_value_but_fixme_should_propagate_errors();
|
||||
m_status_widget = set_main_widget<KeymapStatusWidget>();
|
||||
|
||||
auto current_keymap = MUST(Keyboard::CharacterMap::fetch_system_map());
|
||||
m_status_widget->set_current_keymap(current_keymap.character_map_name());
|
||||
|
||||
Reference in New Issue
Block a user