From 572034064bc8579cda9cebb28e657c79e5c96e3d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 May 2022 11:02:43 +0300 Subject: Autocommit at 07.05.2022 @ 11:02 --- src/Generic/ConsoleInterface/Menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Generic/ConsoleInterface/Menu.cpp') diff --git a/src/Generic/ConsoleInterface/Menu.cpp b/src/Generic/ConsoleInterface/Menu.cpp index 0b27d48..d672540 100644 --- a/src/Generic/ConsoleInterface/Menu.cpp +++ b/src/Generic/ConsoleInterface/Menu.cpp @@ -27,7 +27,7 @@ enum MessageType { Warning, Error, }; -String msg; +const char* msg; MessageType msgType; void Menu::registerError(const char* message) const { @@ -61,9 +61,9 @@ void Menu::navigate() const { titleBox(title); switch(msgType) { - case Error: errorBox(msg.get_cstr()); msgType = NoPrint; break; - case Warning: warningBox(msg.get_cstr()); msgType = NoPrint; break; - case Success: successBox(msg.get_cstr()); msgType = NoPrint; break; + case Error: errorBox(msg); msgType = NoPrint; break; + case Warning: warningBox(msg); msgType = NoPrint; break; + case Success: successBox(msg); msgType = NoPrint; break; case NoPrint: printLine(""); break; } printLine(""); -- cgit v1.3.1-23-gd82d