mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:57:45 +00:00
Taskbar: Use Process::spawn_or_show_error() for shutdown actions
This commit is contained in:
parent
e46b9c189e
commit
43529ea25e
3 changed files with 17 additions and 23 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGUI/Dialog.h>
|
||||
|
||||
|
@ -13,7 +14,12 @@ class ShutdownDialog : public GUI::Dialog {
|
|||
C_OBJECT(ShutdownDialog);
|
||||
|
||||
public:
|
||||
static Vector<char const*> show();
|
||||
struct Command {
|
||||
StringView executable;
|
||||
Vector<char const*, 2> arguments;
|
||||
};
|
||||
|
||||
static Optional<Command const&> show();
|
||||
|
||||
private:
|
||||
ShutdownDialog();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue