From ea5360ea741cdff973f4f8d2a78d9f30b493b1b1 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Wed, 23 Nov 2022 20:14:53 +0100 Subject: [PATCH] Trabajando en las notificaciones --- source/common/screen.cpp | 2 +- source/common/screen.h | 2 +- source/enter_id.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/common/screen.cpp b/source/common/screen.cpp index 3144dd3..d38508a 100644 --- a/source/common/screen.cpp +++ b/source/common/screen.cpp @@ -351,7 +351,7 @@ void Screen::updateNotifier() } // Muestra una notificación de texto por pantalla; -void Screen::showText(std::string text) +void Screen::showNotification(std::string text) { notify->showText(text); } diff --git a/source/common/screen.h b/source/common/screen.h index 041ab83..ca9ceb5 100644 --- a/source/common/screen.h +++ b/source/common/screen.h @@ -126,7 +126,7 @@ public: void updateNotifier(); // Muestra una notificación de texto por pantalla; - void showText(std::string text); + void showNotification(std::string text); }; #endif diff --git a/source/enter_id.cpp b/source/enter_id.cpp index 1c68e03..695f7bb 100644 --- a/source/enter_id.cpp +++ b/source/enter_id.cpp @@ -293,7 +293,7 @@ void EnterID::initOnline() jscore::init(options->online.server, options->online.port); const std::string caption = options->online.jailerID + " IS LOGGED IN"; - screen->showText(caption); + screen->showNotification(caption); if (options->console) { std::cout << caption << std::endl;