From 43529ea25ecf8f8aeb58f8715fb4359fc812fb88 Mon Sep 17 00:00:00 2001 From: MacDue Date: Mon, 13 Mar 2023 20:35:34 +0000 Subject: [PATCH] Taskbar: Use Process::spawn_or_show_error() for shutdown actions --- Userland/Services/Taskbar/ShutdownDialog.cpp | 15 +++++++-------- Userland/Services/Taskbar/ShutdownDialog.h | 8 +++++++- Userland/Services/Taskbar/main.cpp | 17 +++-------------- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/Userland/Services/Taskbar/ShutdownDialog.cpp b/Userland/Services/Taskbar/ShutdownDialog.cpp index fa89958c22..80471a9599 100644 --- a/Userland/Services/Taskbar/ShutdownDialog.cpp +++ b/Userland/Services/Taskbar/ShutdownDialog.cpp @@ -18,24 +18,23 @@ struct Option { DeprecatedString title; - Vector cmd; + ShutdownDialog::Command command; bool enabled; bool default_action; }; -static Vector