created local variable for _output

This commit is contained in:
Anuragh K P 2023-01-30 18:35:06 +05:30
parent 7554d7f071
commit 7b3a6fbaa7
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,6 @@ class Image : public AModule {
std::string path_;
int size_;
int interval_;
util::command::res output_;
util::SleeperThread thread_;
};

View File

@ -39,6 +39,8 @@ void waybar::modules::Image::refresh(int sig) {
}
auto waybar::modules::Image::update() -> void {
util::command::res output_;
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
if(config_["path"].isString())
{