From 2e11fec2cb8772b08b830404f4ca91845aa30add Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 27 Feb 2025 16:51:20 +0100 Subject: [PATCH] canvi de pc --- source/notifier.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/notifier.cpp b/source/notifier.cpp index da977585..3c3c523d 100644 --- a/source/notifier.cpp +++ b/source/notifier.cpp @@ -34,10 +34,10 @@ Notifier *Notifier::get() } // Constructor -Notifier::Notifier(std::string icon_file, std::shared_ptr text) +Notifier::Notifier(std::string &icon_file, const std::string &text) : renderer_(Screen::get()->getRenderer()), - icon_texture_(!icon_file.empty() ? std::make_unique(renderer_, icon_file) : nullptr), - text_(text), + icon_texture_(!icon_file.empty() ? Resource::get()->getTexture(icon_file) : nullptr), + text_(Resource::get()->getText(text)), bg_color_(options.notifications.color), wait_time_(150), stack_(false),