diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-05-27 20:54:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-05-27 23:05:46 +0100 |
| commit | 1158dd504d0838b0c359b2cf1d63615c4ecb0a53 (patch) | |
| tree | 026a4bf5c2175d96ed90007bb17d4362850dcefd /src/wx/job_view.cc | |
| parent | aae000e8a37a494bf20ba0e5dd219ad9f78c6286 (diff) | |
Add UI for message box / email notifications.
Diffstat (limited to 'src/wx/job_view.cc')
| -rw-r--r-- | src/wx/job_view.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index b3b6ee684..acf42bc8b 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -129,8 +129,13 @@ JobView::finished () _details->Enable (true); } - if (_notify->GetValue ()) { - wxMessageBox (std_to_wx(_job->name() + ": " + _job->status()), _("DCP-o-matic"), wxICON_INFORMATION); + if (_notify->GetValue()) { + if (Config::instance()->notification(Config::MESSAGE_BOX)) { + wxMessageBox (std_to_wx(_job->name() + ": " + _job->status()), _("DCP-o-matic"), wxICON_INFORMATION); + } + if (Config::instance()->notification(Config::EMAIL)) { + + } } } |
