Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions src/Client/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2797,21 +2797,29 @@ public static void initDir() {
JPanel portableModePanel = Util.createOptionMessagePanel(portableModeMessage);

JFrame portableModeFrame = Util.launchHiddenFrame();
String[] options = new String[3];
options[0] = "Yes";
options[1] = "No";
options[2] = "I'm not sure :-(";

int response =
JOptionPane.showConfirmDialog(
JOptionPane.showOptionDialog(
portableModeFrame,
portableModePanel,
Launcher.appName,
JOptionPane.YES_NO_OPTION,
JOptionPane.INFORMATION_MESSAGE);
portableModePanel, // message
Launcher.appName, // title
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.INFORMATION_MESSAGE,
null,
options,
null
);

if (response == JOptionPane.YES_OPTION) {
String portableModeAcceptMessage =
"Portable mode has been ENABLED"
"Portable mode has been ENABLED."
+ "<br/>"
+ "<br/>"
+ "Deletion of the \"config.ini\" file will reset this choice";
+ "Deletion of the \"config.ini\" file will reset this choice.";
JPanel portableModeAcceptPanel = Util.createOptionMessagePanel(portableModeAcceptMessage);

JOptionPane.showMessageDialog(
Expand All @@ -2825,10 +2833,10 @@ public static void initDir() {
Dir.CONFIG_DIR = Dir.JAR;
} else {
String portableModeDenyMessage =
"Portable mode will NOT be enabled"
"Portable mode will not be enabled."
+ "<br/>"
+ "<br/>"
+ "Deletion of the \"rscplus.lock\" file will reset this choice";
+ "Deletion of the \"rscplus.lock\" file will reset this choice.";
JPanel portableModeDenyPanel = Util.createOptionMessagePanel(portableModeDenyMessage);

JOptionPane.showMessageDialog(
Expand Down