mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	created local variable for _output
This commit is contained in:
		@@ -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())
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user