diff options
author | MacDue <macdue@dueutil.tech> | 2022-05-11 19:41:33 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-25 23:14:22 +0100 |
commit | 7c8541b91477fa2d5213e2f47a6a290c7e0e5665 (patch) | |
tree | b4b3d640a55849fefad06f256695b618cc3f7d9b /Userland/Applets/Keymap/KeymapStatusWindow.cpp | |
parent | 2f2671f2d31bbf0d018fba438500e8c56bbb8d7f (diff) | |
download | serenity-7c8541b91477fa2d5213e2f47a6a290c7e0e5665.zip |
Userland: Use GUI::Process::spawn_or_show_error() for spawn() from a GUI
Diffstat (limited to 'Userland/Applets/Keymap/KeymapStatusWindow.cpp')
-rw-r--r-- | Userland/Applets/Keymap/KeymapStatusWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applets/Keymap/KeymapStatusWindow.cpp b/Userland/Applets/Keymap/KeymapStatusWindow.cpp index ae4c1bd068..850198682b 100644 --- a/Userland/Applets/Keymap/KeymapStatusWindow.cpp +++ b/Userland/Applets/Keymap/KeymapStatusWindow.cpp @@ -6,9 +6,9 @@ */ #include "KeymapStatusWindow.h" -#include <LibCore/Process.h> #include <LibGUI/ConnectionToWindowMangerServer.h> #include <LibGUI/Painter.h> +#include <LibGUI/Process.h> #include <LibKeyboard/CharacterMap.h> void KeymapStatusWidget::mousedown_event(GUI::MouseEvent& event) @@ -16,7 +16,7 @@ void KeymapStatusWidget::mousedown_event(GUI::MouseEvent& event) if (event.button() != GUI::MouseButton::Primary) return; - MUST(Core::Process::spawn("/bin/KeyboardSettings")); + GUI::Process::spawn_or_show_error(window(), "/bin/KeyboardSettings"); } KeymapStatusWindow::KeymapStatusWindow() |