mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
Resets image panel correctly when resetComponent is called.
This commit is contained in:
parent
dfd00f2c55
commit
2fbdb1c53c
@ -185,6 +185,7 @@ public class DataContentViewerMedia extends javax.swing.JPanel implements DataCo
|
||||
@Override
|
||||
public void resetComponent() {
|
||||
videoPanel.reset();
|
||||
imagePanel.reset();
|
||||
lastFile = null;
|
||||
}
|
||||
|
||||
|
@ -106,6 +106,15 @@ public class MediaViewImagePanel extends javax.swing.JPanel {
|
||||
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
Platform.runLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
fxImageView.setImage(null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Show image
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user