projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f4624
)
Add tooltip to player DCP name with path details.
author
Carl Hetherington
<cth@carlh.net>
Thu, 27 Oct 2022 08:54:27 +0000
(10:54 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 27 Oct 2022 08:54:27 +0000
(10:54 +0200)
src/wx/player_information.cc
patch
|
blob
|
history
diff --git
a/src/wx/player_information.cc
b/src/wx/player_information.cc
index 279ff08609b97b9ecd5b12510f5878603690fdb1..4e95e0956fb208de2e17b57553923beb2f1744ce 100644
(file)
--- 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"));