diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-27 10:54:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-27 10:54:27 +0200 |
| commit | 0dfae427c15dc7fde495567d7dcbd04be80342b5 (patch) | |
| tree | 9f16db118455a7cf8082d7f221e50063edafd2ea | |
| parent | e5f4624a10ebfe15eca39d20f55deb0eb8098cec (diff) | |
Add tooltip to player DCP name with path details.
| -rw-r--r-- | src/wx/player_information.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/player_information.cc b/src/wx/player_information.cc index 279ff0860..4e95e0956 100644 --- a/src/wx/player_information.cc +++ b/src/wx/player_information.cc @@ -139,7 +139,15 @@ PlayerInformation::triggered_update () } int r = 0; - checked_set (_dcp[r++], std_to_wx(dcp->name())); + checked_set(_dcp[r], std_to_wx(dcp->name())); + wxString tooltip; + for (auto directory: dcp->directories()) { + tooltip += std_to_wx(directory.string()) + "\n"; + } + if (!tooltip.empty()) { + _dcp[r]->SetToolTip(tooltip.substr(0, tooltip.length() - 1)); + } + ++r; if (dcp->needs_assets()) { checked_set (_dcp[r], _("Needs OV")); |
