mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
* fix movie match selection/repeat issue
@see https://www.filebot.net/forums/viewtopic.php?f=6&p=15797#p15797
This commit is contained in:
parent
4d02062904
commit
f9018f9feb
@ -451,9 +451,10 @@ class MovieHashMatcher implements AutoCompleteMatcher {
|
|||||||
// allow only one select dialog at a time
|
// allow only one select dialog at a time
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
Map<String, Movie> selectionMemory = (Map<String, Movie>) memory.get("selection");
|
Map<String, Movie> selectionMemory = (Map<String, Movie>) memory.get("selection");
|
||||||
|
String selectionKey = fileQuery.length() >= 2 || folderQuery.length() <= 2 ? fileQuery : folderQuery;
|
||||||
|
|
||||||
if (selectionMemory.containsKey(fileQuery)) {
|
if (selectionMemory.containsKey(selectionKey)) {
|
||||||
return selectionMemory.get(fileQuery);
|
return selectionMemory.get(selectionKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check auto-selection settings
|
// check auto-selection settings
|
||||||
@ -468,7 +469,7 @@ class MovieHashMatcher implements AutoCompleteMatcher {
|
|||||||
SwingUtilities.invokeAndWait(showSelectDialog);
|
SwingUtilities.invokeAndWait(showSelectDialog);
|
||||||
|
|
||||||
// cache selected value
|
// cache selected value
|
||||||
selectionMemory.put(fileQuery, showSelectDialog.get());
|
selectionMemory.put(selectionKey, showSelectDialog.get());
|
||||||
return showSelectDialog.get();
|
return showSelectDialog.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user