1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-16 14:25:02 -05:00

* display only relevant info in dialog title

This commit is contained in:
Reinhard Pointner 2012-04-28 18:13:22 +00:00
parent cfc52cd215
commit a7104877bb

View File

@ -228,7 +228,7 @@ class MovieHashMatcher implements AutoCompleteMatcher {
String input = null; String input = null;
synchronized (this) { synchronized (this) {
input = showInputDialog("Enter movie name:", suggestion, movieFile.getPath(), parent); input = showInputDialog("Enter movie name:", suggestion, String.format("%s / %s", movieFile.getParentFile().getName(), movieFile.getName()), parent);
} }
// we only care about results from manual input from here on out // we only care about results from manual input from here on out
@ -290,7 +290,7 @@ class MovieHashMatcher implements AutoCompleteMatcher {
// multiple results have been found, user must select one // multiple results have been found, user must select one
SelectDialog<Movie> selectDialog = new SelectDialog<Movie>(parent, options); SelectDialog<Movie> selectDialog = new SelectDialog<Movie>(parent, options);
selectDialog.setTitle(movieFile.getPath()); selectDialog.setTitle(String.format("%s / %s", movieFile.getParentFile().getName(), movieFile.getName()));
selectDialog.getHeaderLabel().setText(String.format("Movies matching '%s':", fileQuery)); selectDialog.getHeaderLabel().setText(String.format("Movies matching '%s':", fileQuery));
selectDialog.getCancelAction().putValue(Action.NAME, "Ignore"); selectDialog.getCancelAction().putValue(Action.NAME, "Ignore");
selectDialog.pack(); selectDialog.pack();