diff --git a/Services/SystemMenu/CMakeLists.txt b/Services/SystemMenu/CMakeLists.txt index f8b7ba0651..d0432a0e47 100644 --- a/Services/SystemMenu/CMakeLists.txt +++ b/Services/SystemMenu/CMakeLists.txt @@ -1,6 +1,6 @@ set(SOURCES main.cpp - PowerDialog.cpp + ShutdownDialog.cpp ) serenity_bin(SystemMenu) diff --git a/Services/SystemMenu/PowerDialog.cpp b/Services/SystemMenu/ShutdownDialog.cpp similarity index 92% rename from Services/SystemMenu/PowerDialog.cpp rename to Services/SystemMenu/ShutdownDialog.cpp index 0aa7f5a14b..166ded3263 100644 --- a/Services/SystemMenu/PowerDialog.cpp +++ b/Services/SystemMenu/ShutdownDialog.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "ShutdownDialog.h" #include #include #include @@ -34,33 +35,31 @@ #include #include -#include "PowerDialog.h" - -struct PowerOption { +struct Option { String title; Vector cmd; bool enabled; bool default_action; }; -static const Vector options = { +static const Vector