Playlist editor: try to make progress dialogue appear sooner when scanning content.
authorCarl Hetherington <cth@carlh.net>
Mon, 19 Oct 2020 21:22:25 +0000 (23:22 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 19 Oct 2020 21:22:25 +0000 (23:22 +0200)
src/wx/content_view.cc

index d4e18108dd3a97225222f16132bf445cf03d10b3..da3ca6b6b781628c5541ec8c6a59a3368543e70c 100644 (file)
@@ -82,6 +82,8 @@ ContentView::update ()
 
        for (directory_iterator i = directory_iterator(*dir); i != directory_iterator(); ++i) {
                try {
+                       progress.Pulse ();
+
                        shared_ptr<Content> content;
                        if (is_directory(*i) && (is_regular_file(*i / "ASSETMAP") || is_regular_file(*i / "ASSETMAP.xml"))) {
                                content.reset (new DCPContent(*i));