mirror of
https://github.com/polybar/polybar.git
synced 2025-06-30 18:52:47 -04:00
fix: Correct type for module interval
This commit is contained in:
parent
a989d401d9
commit
14958bdd23
9 changed files with 9 additions and 9 deletions
|
@ -14,7 +14,7 @@ namespace modules {
|
|||
github_module::github_module(const bar_settings& bar, string name_)
|
||||
: timer_module<github_module>(bar, move(name_)), m_http(http_util::make_downloader()) {
|
||||
m_accesstoken = m_conf.get(name(), "token");
|
||||
m_interval = m_conf.get(name(), "interval", 60s);
|
||||
m_interval = m_conf.get<decltype(m_interval)>(name(), "interval", 60s);
|
||||
m_empty_notifications = m_conf.get(name(), "empty-notifications", m_empty_notifications);
|
||||
|
||||
m_formatter->add(DEFAULT_FORMAT, TAG_LABEL, {TAG_LABEL});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue