summaryrefslogtreecommitdiff
path: root/src/wx/hints_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-06 19:49:37 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-06 19:49:37 +0000
commitd43434e463f5ef76ee448046ffb09ffe4b05ea8d (patch)
tree7c934d260a51fa08058d9dc8d45277aeae7d2129 /src/wx/hints_dialog.cc
parenta8ca8dd8c3838f42c1dcd86e09901275271c298e (diff)
Improve hints dialog in various ways, especially with long projects (#1439).
Diffstat (limited to 'src/wx/hints_dialog.cc')
-rw-r--r--src/wx/hints_dialog.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/hints_dialog.cc b/src/wx/hints_dialog.cc
index 099b31327..18e8a6f9e 100644
--- a/src/wx/hints_dialog.cc
+++ b/src/wx/hints_dialog.cc
@@ -41,6 +41,7 @@ HintsDialog::HintsDialog (wxWindow* parent, boost::weak_ptr<Film> film, bool ok)
: wxDialog (parent, wxID_ANY, _("Hints"))
, _film (film)
, _hints (new Hints (film))
+ , _finished (false)
{
wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
@@ -109,6 +110,7 @@ HintsDialog::film_change (ChangeType type)
Layout ();
_gauge->SetValue (0);
update ();
+ _finished = false;
_hints->start ();
}
@@ -123,7 +125,11 @@ HintsDialog::update ()
{
_text->Clear ();
if (_current.empty ()) {
- _text->WriteText (_("There are no hints: everything looks good!"));
+ if (_finished) {
+ _text->WriteText (_("There are no hints: everything looks good!"));
+ } else {
+ _text->WriteText (_("There are no hints yet: project check in progress."));
+ }
} else {
_text->BeginStandardBullet (N_("standard/circle"), 1, 50);
BOOST_FOREACH (string i, _current) {
@@ -156,6 +162,8 @@ HintsDialog::pulse ()
void
HintsDialog::finished ()
{
+ _finished = true;
+ update ();
_gauge->Hide ();
_gauge_message->Hide ();
Layout ();