gui2/tgame_cache_options: Display busy cursor while measuring cache size

It can take a while to obtain the size of a directory with a large
number of entries, especially when the system is under load.
This commit is contained in:
Ignacio R. Morelle 2016-05-09 09:06:41 -03:00
parent 005d52718a
commit e6eec06cb7

View File

@ -131,6 +131,7 @@ void tgame_cache_options::update_cache_size_display()
return;
}
const cursor::setter cs(cursor::WAIT);
const int size = filesystem::dir_size(cache_path_);
if(size < 0) {