playlist editor: change data fetch delay to 250ms

This commit is contained in:
Andrzej Rybczak
2014-08-31 11:15:46 +02:00
parent 301de2a4fe
commit 40ef9070af
2 changed files with 12 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ PlaylistEditor *myPlaylistEditor;
namespace {
const auto fetch_delay = boost::posix_time::milliseconds(500);
const int pe_timeout = 250;
const auto fetch_delay = boost::posix_time::milliseconds(pe_timeout);
size_t LeftColumnStartX;
size_t LeftColumnWidth;
@@ -207,6 +208,14 @@ void PlaylistEditor::update()
}
}
int PlaylistEditor::windowTimeout()
{
if (Content.reallyEmpty())
return pe_timeout;
else
return Screen<WindowType>::windowTimeout();
}
bool PlaylistEditor::isContentFiltered()
{
if (Content.isFiltered())