mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 00:38:16 +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);
|
setLocationRelativeTo(null);
|
||||||
BotDialog.getInstance(this);
|
BotDialog.getInstance(this);
|
||||||
|
|
||||||
// Uncompleted fix for non windows users
|
|
||||||
if (!OperatingSystem.getOS().equals(OperatingSystem.WINDOWS)) {
|
if (!OperatingSystem.getOS().equals(OperatingSystem.WINDOWS)) {
|
||||||
BotDialog.getInstance().setVisible(false);
|
BotDialog.getInstance().setVisible(false);
|
||||||
}
|
}
|
||||||
@@ -71,6 +70,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
|
|
||||||
JMenuItem proxy = new JMenuItem("Network");
|
JMenuItem proxy = new JMenuItem("Network");
|
||||||
JMenuItem dialog = new JCheckBoxMenuItem("Disable dialog");
|
JMenuItem dialog = new JCheckBoxMenuItem("Disable dialog");
|
||||||
|
dialog.setSelected(true);
|
||||||
|
|
||||||
JMenuItem exit = new JMenuItem("Exit");
|
JMenuItem exit = new JMenuItem("Exit");
|
||||||
|
|
||||||
@@ -94,7 +94,9 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
|||||||
stop.addActionListener(this);
|
stop.addActionListener(this);
|
||||||
|
|
||||||
file.add(proxy);
|
file.add(proxy);
|
||||||
|
if (!OperatingSystem.getOS().equals(OperatingSystem.WINDOWS)){
|
||||||
file.add(dialog);
|
file.add(dialog);
|
||||||
|
}
|
||||||
file.add(exit);
|
file.add(exit);
|
||||||
|
|
||||||
scripts.add(run);
|
scripts.add(run);
|
||||||
|
|||||||
Reference in New Issue
Block a user