mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 12:02:39 +00:00
show warning when switching to hex view if swf is modified
This commit is contained in:
@@ -1040,7 +1040,12 @@ public abstract class MainFrameMenu implements MenuBuilder {
|
||||
|
||||
private void viewHexActionPerformed(ActionEvent evt) {
|
||||
Configuration.dumpView.set(true);
|
||||
mainFrame.getPanel().showView(MainPanel.VIEW_DUMP);
|
||||
MainPanel mainPanel = mainFrame.getPanel();
|
||||
if (mainPanel.isModified()) {
|
||||
View.showMessageDialog(null, translate("message.warning.hexViewNotUpToDate"), translate("message.warning"), JOptionPane.WARNING_MESSAGE, Configuration.warningHexViewNotUpToDate);
|
||||
}
|
||||
|
||||
mainPanel.showView(MainPanel.VIEW_DUMP);
|
||||
setGroupSelection("view", "/file/view/viewHex");
|
||||
setMenuChecked("/tools/timeline", false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user