Skip to content

Commit

Permalink
PDFBOX-2941: enable some menu items before a file is opened
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922302 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Dec 4, 2024
1 parent 5f994c1 commit 605ce3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,6 @@ private JMenu createFileMenu()
fileMenu.add(printMenuItem);

printDpiMenu = PrintDpiMenu.getInstance().getMenu();
printDpiMenu.setEnabled(false);
fileMenu.add(printDpiMenu);

if (!IS_MAC_OS)
Expand Down Expand Up @@ -1427,7 +1426,6 @@ PDDocument open() throws IOException
};
document = documentOpener.parse();
printMenuItem.setEnabled(true);
printDpiMenu.setEnabled(true);
reopenMenuItem.setEnabled(true);
saveAsMenuItem.setEnabled(true);

Expand Down Expand Up @@ -1476,7 +1474,6 @@ PDDocument open() throws IOException, URISyntaxException
};
document = documentOpener.parse();
printMenuItem.setEnabled(true);
printDpiMenu.setEnabled(true);
reopenMenuItem.setEnabled(true);
saveAsMenuItem.setEnabled(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ private JMenu createViewMenu()
viewMenu.setMnemonic('V');

TreeViewMenu treeViewMenu = TreeViewMenu.getInstance();
treeViewMenu.setEnableMenu(false);
viewMenu.add(treeViewMenu.getMenu());
treeViewMenu.addMenuListeners(actionEvent ->
{
Expand Down Expand Up @@ -222,7 +221,6 @@ private JMenu createViewMenu()
viewMenu.addSeparator();

allowSubsampling = new JCheckBoxMenuItem(ALLOW_SUBSAMPLING);
allowSubsampling.setEnabled(false);
viewMenu.add(allowSubsampling);

viewMenu.addSeparator();
Expand Down

0 comments on commit 605ce3c

Please sign in to comment.