@@ -166,6 +166,7 @@ public class MainViewerGUI extends JFrame
166
166
public final JCheckBoxMenuItem decodeAPKResources = new TranslatedJCheckBoxMenuItem ("Decode APK Resources" , TranslatedComponents .DECODE_APK_RESOURCES );
167
167
public final JCheckBoxMenuItem synchronizedViewing = new TranslatedJCheckBoxMenuItem ("Synchronized Viewing" , TranslatedComponents .SYNCHRONIZED_VIEWING );
168
168
public final JCheckBoxMenuItem showClassMethods = new TranslatedJCheckBoxMenuItem ("Show Class Methods" , TranslatedComponents .SHOW_CLASS_METHODS );
169
+ public final JCheckBoxMenuItem disableReloadConfirmation = new TranslatedJCheckBoxMenuItem ("Disable Reload Confirmation" , TranslatedComponents .DISABLE_RELOAD_CONFIRMATION );
169
170
170
171
//apk conversion settings
171
172
public final JMenu apkConversionSecondaryMenu = new TranslatedJMenu ("APK Conversion/Decoding" , TranslatedComponents .APK_CONVERSION_DECODING );
@@ -405,6 +406,7 @@ public void buildSettingsMenu()
405
406
settingsMainMenu .add (compileOnSave );
406
407
settingsMainMenu .add (autoCompileOnRefresh );
407
408
settingsMainMenu .add (refreshOnChange );
409
+ settingsMainMenu .add (disableReloadConfirmation );
408
410
409
411
settingsMainMenu .add (new JSeparator ());
410
412
settingsMainMenu .add (updateCheck );
@@ -747,6 +749,7 @@ public void defaultSettings()
747
749
{
748
750
compileOnSave .setSelected (false );
749
751
autoCompileOnRefresh .setSelected (true );
752
+ disableReloadConfirmation .setSelected (false );
750
753
decodeAPKResources .setSelected (true );
751
754
updateCheck .setSelected (true );
752
755
forcePureAsciiAsText .setSelected (true );
@@ -908,9 +911,14 @@ public void runResources()
908
911
909
912
public void reloadResources ()
910
913
{
911
- MultipleChoiceDialog dialog = new MultipleChoiceDialog (TranslatedStrings .RELOAD_RESOURCES_TITLE .toString (), TranslatedStrings .RELOAD_RESOURCES_CONFIRM .toString (), new String []{TranslatedStrings .YES .toString (), TranslatedStrings .NO .toString ()});
914
+ boolean doRefresh = disableReloadConfirmation .isSelected ();
915
+ if (!doRefresh )
916
+ {
917
+ MultipleChoiceDialog dialog = new MultipleChoiceDialog (TranslatedStrings .RELOAD_RESOURCES_TITLE .toString (), TranslatedStrings .RELOAD_RESOURCES_CONFIRM .toString (), new String []{TranslatedStrings .YES .toString (), TranslatedStrings .NO .toString ()});
918
+ doRefresh = dialog .promptChoice () == 0 ;
919
+ }
912
920
913
- if (dialog . promptChoice () == 0 )
921
+ if (doRefresh )
914
922
{
915
923
LazyNameUtil .reset ();
916
924
List <File > reopen = new ArrayList <>();
0 commit comments