mirror of
https://github.com/polybar/polybar.git
synced 2026-03-29 19:46:49 +00:00
refactor(modules): Move setup to constructor
This commit is contained in:
@ -13,7 +13,7 @@ namespace modules {
|
||||
template class module<menu_module>;
|
||||
template class static_module<menu_module>;
|
||||
|
||||
void menu_module::setup() {
|
||||
menu_module::menu_module(const bar_settings& bar, string name_) : static_module<menu_module>(bar, move(name_)) {
|
||||
string default_format{TAG_LABEL_TOGGLE + string{" "} + TAG_MENU};
|
||||
|
||||
m_formatter->add(DEFAULT_FORMAT, default_format, {TAG_LABEL_TOGGLE, TAG_MENU});
|
||||
|
||||
Reference in New Issue
Block a user