summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-22 22:41:35 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-22 22:41:35 +0000
commitdaed95a3c8ac52f301bf331da4951b7e98cb50b6 (patch)
tree660c555abb56585fc5c41c1defeb3577c689fc85
parent629359a2c3eb1ff37d9bc53e260b00700267e8db (diff)
Try to make splash screen disappear sooner by Skip()ing the idle event.
-rw-r--r--src/tools/dcpomatic.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 3fb291fc4..048d5fedd 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -1546,7 +1546,7 @@ private:
}
signal_manager = new wxSignalManager (this);
- Bind (wxEVT_IDLE, boost::bind (&App::idle, this));
+ Bind (wxEVT_IDLE, boost::bind (&App::idle, this, _1));
Bind (wxEVT_TIMER, boost::bind (&App::check, this));
_timer.reset (new wxTimer (this));
@@ -1635,9 +1635,10 @@ private:
report_exception ();
}
- void idle ()
+ void idle (wxIdleEvent& ev)
{
signal_manager->ui_idle ();
+ ev.Skip ();
}
void check ()