initialize screens only if necessary
This commit is contained in:
@@ -35,6 +35,7 @@ void Help::Init()
|
||||
w->SetTimeout(ncmpcpp_window_timeout);
|
||||
GetKeybindings();
|
||||
w->Flush();
|
||||
isInitialized = 1;
|
||||
}
|
||||
|
||||
void Help::Resize()
|
||||
@@ -48,6 +49,9 @@ void Help::SwitchTo()
|
||||
if (myScreen == this)
|
||||
return;
|
||||
|
||||
if (!isInitialized)
|
||||
Init();
|
||||
|
||||
if (hasToBeResized)
|
||||
Resize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user