fix refreshing dialog window

master
Andrzej Rybczak 17 years ago
parent af6467d8c1
commit 34feba8d67
  1. 7
      src/ncmpcpp.cpp

@ -321,7 +321,7 @@ int main(int argc, char *argv[])
} }
else if (Keypressed(input, Key.End)) else if (Keypressed(input, Key.End))
{ {
myWindow->Main()->Scroll(wEnd); myScreen->Scroll(wEnd);
} }
else if (input == KEY_RESIZE) else if (input == KEY_RESIZE)
{ {
@ -1320,6 +1320,9 @@ int main(int argc, char *argv[])
mDialog->Display(); mDialog->Display();
myOldScreen = myScreen;
myScreen = myHelp; // temp hack, prevent playlist from updating
while (!Keypressed(input, Key.Enter)) while (!Keypressed(input, Key.Enter))
{ {
TraceMpdStatus(); TraceMpdStatus();
@ -1340,6 +1343,8 @@ int main(int argc, char *argv[])
mDialog->Scroll(wEnd); mDialog->Scroll(wEnd);
} }
myScreen = myOldScreen;
size_t id = mDialog->Choice(); size_t id = mDialog->Choice();
myScreen->Refresh(); myScreen->Refresh();

Loading…
Cancel
Save