fix: lint
This commit is contained in:
parent
286a3c70f4
commit
ea38eec2af
|
@ -15,10 +15,7 @@ enum class WeeksSide {
|
|||
HIDDEN,
|
||||
};
|
||||
|
||||
enum class CldMode {
|
||||
MONTH,
|
||||
YEAR
|
||||
};
|
||||
enum class CldMode { MONTH, YEAR };
|
||||
|
||||
class Clock : public ALabel {
|
||||
public:
|
||||
|
@ -57,8 +54,8 @@ class Clock : public ALabel {
|
|||
std::string cldYearCached_{};
|
||||
std::string cldMonCached_{};
|
||||
/*Calendar functions*/
|
||||
auto get_calendar(const date::zoned_seconds& now,
|
||||
const date::zoned_seconds& wtime) -> std::string;
|
||||
auto get_calendar(const date::zoned_seconds& now, const date::zoned_seconds& wtime)
|
||||
-> std::string;
|
||||
void cldModeSwitch();
|
||||
};
|
||||
} // namespace waybar::modules
|
||||
|
|
|
@ -44,17 +44,12 @@ 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
|
||||
{
|
||||
} else {
|
||||
path_ = "";
|
||||
}
|
||||
if (Glib::file_test(path_, Glib::FILE_TEST_EXISTS))
|
||||
|
|
Loading…
Reference in New Issue