fix: lint

This commit is contained in:
Alex
2023-02-09 13:25:39 +01:00
parent 286a3c70f4
commit ea38eec2af
3 changed files with 12 additions and 20 deletions

View File

@ -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_);