mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 17:47:18 +00:00
Userland: Use GUI::Process::spawn_or_show_error() for spawn() from a GUI
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user