mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-10-01 02:17:22 +00:00
Finished bot dialog support for unix users
This commit is contained in:
@@ -57,7 +57,6 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
||||
setLocationRelativeTo(null);
|
||||
BotDialog.getInstance(this);
|
||||
|
||||
// Uncompleted fix for non windows users
|
||||
if (!OperatingSystem.getOS().equals(OperatingSystem.WINDOWS)) {
|
||||
BotDialog.getInstance().setVisible(false);
|
||||
}
|
||||
@@ -71,6 +70,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
||||
|
||||
JMenuItem proxy = new JMenuItem("Network");
|
||||
JMenuItem dialog = new JCheckBoxMenuItem("Disable dialog");
|
||||
dialog.setSelected(true);
|
||||
|
||||
JMenuItem exit = new JMenuItem("Exit");
|
||||
|
||||
@@ -94,7 +94,9 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
||||
stop.addActionListener(this);
|
||||
|
||||
file.add(proxy);
|
||||
if (!OperatingSystem.getOS().equals(OperatingSystem.WINDOWS)){
|
||||
file.add(dialog);
|
||||
}
|
||||
file.add(exit);
|
||||
|
||||
scripts.add(run);
|
||||
|
||||
Reference in New Issue
Block a user