From e8bf1f5cd7ae4fdc73f6b7b0a7e8d6d97640e7d8 Mon Sep 17 00:00:00 2001 From: Konloch Date: Mon, 28 Feb 2022 14:45:22 -0600 Subject: [PATCH] GUI Update --- .../club/bytecodeviewer/gui/MainViewerGUI.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java index 898eba74c..6e7c60c11 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java @@ -448,6 +448,13 @@ public void buildSettingsMenu() // it might be better to leave it as a secondary menu settingsMainMenu.add(apkConversionSecondaryMenu); //settingsMainMenu.add(useNewSettingsDialog ? apkConversionSettings : apkConversionMenu); + + //Smali minSdkVersion + minSdkVersionSpinner.setPreferredSize(new Dimension(60, 24)); + minSdkVersionSpinner.setMinimumSize(new Dimension(60, 24)); + minSdkVersionSpinner.setModel(new SpinnerNumberModel(26, 1, null, 1)); + minSdkVersionMenu.add(minSdkVersionSpinner); + settingsMainMenu.add(minSdkVersionMenu); settingsMainMenu.add(new JSeparator()); @@ -653,13 +660,6 @@ public void buildSettingsMenu() bytecodeDecompilerSettingsSecondaryMenu.add(appendBracketsToLabels); bytecodeDecompilerSettingsDialog = new SettingsDialog(bytecodeDecompilerSettingsSecondaryMenu, new JPanel()); bytecodeDecompilerSettings.addActionListener((e)-> bytecodeDecompilerSettingsDialog.showDialog()); - - //Smali minSdkVersion - minSdkVersionSpinner.setPreferredSize(new Dimension(60, 24)); - minSdkVersionSpinner.setMinimumSize(new Dimension(60, 24)); - minSdkVersionSpinner.setModel(new SpinnerNumberModel(26, 1, null, 1)); - minSdkVersionMenu.add(minSdkVersionSpinner); - settingsMainMenu.add(minSdkVersionMenu); deleteForeignOutdatedLibs.addActionListener(arg0 -> showForeignLibraryWarning()); forcePureAsciiAsText.addActionListener(arg0 -> SettingsSerializer.saveSettingsAsync());