Try to be more careful when loading FrameInfos from disk.
[dcpomatic.git] / src / wx / job_manager_view.cc
index 20f885a9b284cf7b8b0b12256413bf1ea3f618f3..b627edc2f31be8b7cc20b71a503bf90765f35787 100644 (file)
@@ -43,7 +43,6 @@ public:
                , _window (window)
                , _panel (panel)
                , _table (table)
-               , _needs_pulse (false)
        {
                int n = 0;
                
@@ -86,11 +85,9 @@ public:
 
        void maybe_pulse ()
        {
-               if (_job->running() && _needs_pulse) {
+               if (_job->running() && _job->progress_unknown ()) {
                        _gauge->Pulse ();
                }
-
-               _needs_pulse = true;
        }
 
 private:
@@ -101,7 +98,6 @@ private:
                if (p >= 0) {
                        checked_set (_message, _job->status ());
                        _gauge->SetValue (p * 100);
-                       _needs_pulse = false;
                }
 
                _table->Layout ();
@@ -156,7 +152,6 @@ private:
        wxButton* _cancel;
        wxButton* _pause;
        wxButton* _details;
-       bool _needs_pulse;
 };
 
 /** Must be called in the GUI thread */