always create header window
this fixes crash that would occur if one had header_visibility = "no", classic user interface at start and tried to change it to alternative one at runtime.
This commit is contained in:
@@ -266,11 +266,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
SetWindowsDimensions(header_height, footer_start_y, footer_height);
|
SetWindowsDimensions(header_height, footer_start_y, footer_height);
|
||||||
|
|
||||||
|
wHeader = new Window(0, 0, COLS, header_height, "", Config.header_color, brNone);
|
||||||
if (Config.header_visibility || Config.new_design)
|
if (Config.header_visibility || Config.new_design)
|
||||||
{
|
|
||||||
wHeader = new Window(0, 0, COLS, header_height, "", Config.header_color, brNone);
|
|
||||||
wHeader->Display();
|
wHeader->Display();
|
||||||
}
|
|
||||||
|
|
||||||
wFooter = new Window(0, footer_start_y, COLS, footer_height, "", Config.statusbar_color, brNone);
|
wFooter = new Window(0, footer_start_y, COLS, footer_height, "", Config.statusbar_color, brNone);
|
||||||
wFooter->SetTimeout(ncmpcpp_window_timeout);
|
wFooter->SetTimeout(ncmpcpp_window_timeout);
|
||||||
|
|||||||
Reference in New Issue
Block a user