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),