Add ability to not display the "Connected to ..." message at startup
This commit is contained in:
@@ -349,6 +349,9 @@
|
|||||||
#
|
#
|
||||||
#statusbar_visibility = yes
|
#statusbar_visibility = yes
|
||||||
#
|
#
|
||||||
|
## Show the "Connected to ..." message on startup
|
||||||
|
#connected_message_on_startup = yes
|
||||||
|
#
|
||||||
#titles_visibility = yes
|
#titles_visibility = yes
|
||||||
#
|
#
|
||||||
#header_text_scrolling = yes
|
#header_text_scrolling = yes
|
||||||
|
|||||||
@@ -248,6 +248,9 @@ If enabled, header window will be displayed, otherwise hidden.
|
|||||||
.B statusbar_visibility = yes/no
|
.B statusbar_visibility = yes/no
|
||||||
If enabled, statusbar will be displayed, otherwise hidden.
|
If enabled, statusbar will be displayed, otherwise hidden.
|
||||||
.TP
|
.TP
|
||||||
|
.B connected_message_on_startup = yes/no
|
||||||
|
Show the "Connected to ..." message on startup
|
||||||
|
.TP
|
||||||
.B titles_visibility = yes/no
|
.B titles_visibility = yes/no
|
||||||
If enabled, column titles will be displayed, otherwise hidden.
|
If enabled, column titles will be displayed, otherwise hidden.
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
@@ -458,6 +458,7 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
|
|||||||
p.add("default_tag_editor_pattern", &pattern, "%n - %t");
|
p.add("default_tag_editor_pattern", &pattern, "%n - %t");
|
||||||
p.add("header_visibility", &header_visibility, "yes", yes_no);
|
p.add("header_visibility", &header_visibility, "yes", yes_no);
|
||||||
p.add("statusbar_visibility", &statusbar_visibility, "yes", yes_no);
|
p.add("statusbar_visibility", &statusbar_visibility, "yes", yes_no);
|
||||||
|
p.add("connected_message_on_startup", &connected_message_on_startup, "yes", yes_no);
|
||||||
p.add("titles_visibility", &titles_visibility, "yes", yes_no);
|
p.add("titles_visibility", &titles_visibility, "yes", yes_no);
|
||||||
p.add("header_text_scrolling", &header_text_scrolling, "yes", yes_no);
|
p.add("header_text_scrolling", &header_text_scrolling, "yes", yes_no);
|
||||||
p.add("cyclic_scrolling", &use_cyclic_scrolling, "no", yes_no);
|
p.add("cyclic_scrolling", &use_cyclic_scrolling, "no", yes_no);
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ struct Configuration
|
|||||||
bool header_visibility;
|
bool header_visibility;
|
||||||
bool header_text_scrolling;
|
bool header_text_scrolling;
|
||||||
bool statusbar_visibility;
|
bool statusbar_visibility;
|
||||||
|
bool connected_message_on_startup;
|
||||||
bool titles_visibility;
|
bool titles_visibility;
|
||||||
bool centered_cursor;
|
bool centered_cursor;
|
||||||
bool screen_switcher_previous;
|
bool screen_switcher_previous;
|
||||||
|
|||||||
@@ -169,7 +169,10 @@ void initialize_status()
|
|||||||
|
|
||||||
m_status_initialized = true;
|
m_status_initialized = true;
|
||||||
wFooter->addFDCallback(Mpd.GetFD(), Statusbar::Helpers::mpd);
|
wFooter->addFDCallback(Mpd.GetFD(), Statusbar::Helpers::mpd);
|
||||||
Statusbar::printf("Connected to %1%", Mpd.GetHostname());
|
if (Config.connected_message_on_startup)
|
||||||
|
{
|
||||||
|
Statusbar::printf("Connected to %1%", Mpd.GetHostname());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user