fix refreshing dialog window

This commit is contained in:
Andrzej Rybczak
2009-02-16 14:50:07 +01:00
parent af6467d8c1
commit 34feba8d67

View File

@@ -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();