MediaConverter: If path is truncated, set a tooltip
This commit is contained in:
@@ -877,6 +877,10 @@ MediaConverterWindow::TruncateOutputFolderPath()
|
||||
|
||||
fOutputFolder->TruncateString(&pathString, B_TRUNCATE_MIDDLE, maxWidth);
|
||||
fOutputFolder->SetText(pathString.String());
|
||||
if (fOutputFolder->StringWidth(path.Path()) > maxWidth)
|
||||
fOutputFolder->SetToolTip(path.Path());
|
||||
else
|
||||
fOutputFolder->SetToolTip((const char*)NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user