mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
extracted content gui: set labels to - if there is hit navigation is disabled
This commit is contained in:
parent
99c85aa824
commit
b6d899fdb1
@ -369,7 +369,9 @@ class ExtractedContentPanel extends javax.swing.JPanel {
|
|||||||
* @param current, current hit to update the display with
|
* @param current, current hit to update the display with
|
||||||
*/
|
*/
|
||||||
void updateCurrentMatchDisplay(int current) {
|
void updateCurrentMatchDisplay(int current) {
|
||||||
hitCountLabel.setText(Integer.toString(current));
|
if (current == 0)
|
||||||
|
hitCountLabel.setText("-");
|
||||||
|
else hitCountLabel.setText(Integer.toString(current));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -377,7 +379,9 @@ class ExtractedContentPanel extends javax.swing.JPanel {
|
|||||||
* @param total total number of hits to update the display with
|
* @param total total number of hits to update the display with
|
||||||
*/
|
*/
|
||||||
void updateTotaMatcheslDisplay(int total) {
|
void updateTotaMatcheslDisplay(int total) {
|
||||||
hitTotalLabel.setText(Integer.toString(total));
|
if (total == 0)
|
||||||
|
hitTotalLabel.setText("-");
|
||||||
|
else hitTotalLabel.setText(Integer.toString(total));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -479,6 +479,8 @@ public class ExtractedContentViewer implements DataContentViewer {
|
|||||||
} else {
|
} else {
|
||||||
panel.enableNextMatchControl(false);
|
panel.enableNextMatchControl(false);
|
||||||
panel.enablePrevMatchControl(false);
|
panel.enablePrevMatchControl(false);
|
||||||
|
panel.updateCurrentMatchDisplay(0);
|
||||||
|
panel.updateTotaMatcheslDisplay(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user