mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +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
|
@Override
|
||||||
public void resetComponent() {
|
public void resetComponent() {
|
||||||
videoPanel.reset();
|
videoPanel.reset();
|
||||||
|
imagePanel.reset();
|
||||||
lastFile = null;
|
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
|
* Show image
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user