mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
7802 fix text for search in progress node
This commit is contained in:
parent
0e5598f461
commit
802d1235ca
@ -187,7 +187,7 @@ class FileSearchPanel extends javax.swing.JPanel {
|
|||||||
if (this.isValidSearch()) {
|
if (this.isValidSearch()) {
|
||||||
// try to get the number of matches first
|
// try to get the number of matches first
|
||||||
Case currentCase = Case.getCurrentCaseThrows(); // get the most updated case
|
Case currentCase = Case.getCurrentCaseThrows(); // get the most updated case
|
||||||
Node emptyNode = new TableFilterNode(new EmptyNode(Bundle.FileSearchPanel_emptyNode_display_text()), true);
|
Node emptyNode = new TableFilterNode(new EmptyNode(Bundle.FileSearchPanel_searchingNode_display_text()), true);
|
||||||
String title = NbBundle.getMessage(this.getClass(), "FileSearchPanel.search.results.title", ++resultWindowCount);
|
String title = NbBundle.getMessage(this.getClass(), "FileSearchPanel.search.results.title", ++resultWindowCount);
|
||||||
String pathText = Bundle.FileSearchPanel_searchingPath_text();
|
String pathText = Bundle.FileSearchPanel_searchingPath_text();
|
||||||
final DataResultTopComponent searchResultWin = DataResultTopComponent.createInstance(title, pathText,
|
final DataResultTopComponent searchResultWin = DataResultTopComponent.createInstance(title, pathText,
|
||||||
@ -260,6 +260,7 @@ class FileSearchPanel extends javax.swing.JPanel {
|
|||||||
public void propertyChange(PropertyChangeEvent evt) {
|
public void propertyChange(PropertyChangeEvent evt) {
|
||||||
if (evt.getPropertyName().equals("tcClosed") && !searchWorker.isDone() && evt.getOldValue() == null) {
|
if (evt.getPropertyName().equals("tcClosed") && !searchWorker.isDone() && evt.getOldValue() == null) {
|
||||||
searchWorker.cancel(true);
|
searchWorker.cancel(true);
|
||||||
|
logger.log(Level.INFO, "User has closed the results window while search was in progress, search will be cancelled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user