canvi de pc

This commit is contained in:
2025-02-27 16:51:20 +01:00
parent 0d7ab830c9
commit 2e11fec2cb

View File

@@ -34,10 +34,10 @@ Notifier *Notifier::get()
}
// Constructor
Notifier::Notifier(std::string icon_file, std::shared_ptr<Text> text)
Notifier::Notifier(std::string &icon_file, const std::string &text)
: renderer_(Screen::get()->getRenderer()),
icon_texture_(!icon_file.empty() ? std::make_unique<Texture>(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),