mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: lint
This commit is contained in:
@ -44,18 +44,13 @@ auto waybar::modules::Image::update() -> void {
|
||||
util::command::res output_;
|
||||
|
||||
Glib::RefPtr<Gdk::Pixbuf> pixbuf;
|
||||
if(config_["path"].isString())
|
||||
{
|
||||
if (config_["path"].isString()) {
|
||||
path_ = config_["path"].asString();
|
||||
}
|
||||
else if(config_["exec"].isString())
|
||||
{
|
||||
} else if (config_["exec"].isString()) {
|
||||
output_ = util::command::exec(config_["exec"].asString());
|
||||
path_ =output_.out;
|
||||
}
|
||||
else
|
||||
{
|
||||
path_="";
|
||||
path_ = output_.out;
|
||||
} else {
|
||||
path_ = "";
|
||||
}
|
||||
if (Glib::file_test(path_, Glib::FILE_TEST_EXISTS))
|
||||
pixbuf = Gdk::Pixbuf::create_from_file(path_, size_, size_);
|
||||
|
Reference in New Issue
Block a user