mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
created local variable for _output
This commit is contained in:
parent
7554d7f071
commit
7b3a6fbaa7
@ -27,7 +27,6 @@ class Image : public AModule {
|
|||||||
std::string path_;
|
std::string path_;
|
||||||
int size_;
|
int size_;
|
||||||
int interval_;
|
int interval_;
|
||||||
util::command::res output_;
|
|
||||||
|
|
||||||
util::SleeperThread thread_;
|
util::SleeperThread thread_;
|
||||||
};
|
};
|
||||||
|
@ -39,6 +39,8 @@ void waybar::modules::Image::refresh(int sig) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto waybar::modules::Image::update() -> void {
|
auto waybar::modules::Image::update() -> void {
|
||||||
|
util::command::res output_;
|
||||||
|
|
||||||
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
|
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
|
||||||
if(config_["path"].isString())
|
if(config_["path"].isString())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user