mirror of
https://github.com/Maschell/HIDtoVPADNetworkClient.git
synced 2024-11-22 14:09:17 +01:00
Formatting code, removed TODO and imports.
This commit is contained in:
parent
e7fc629bec
commit
72fd042a3a
@ -80,7 +80,6 @@ public class GuiInputControls extends JPanel implements ActionListener {
|
||||
statusLabel = new JLabel("Ready.");
|
||||
statusLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
|
||||
|
||||
|
||||
cbautoActivateController = new JCheckBox();
|
||||
cbautoActivateController.setSelected(Settings.AUTO_ACTIVATE_CONTROLLER);
|
||||
cbautoActivateController.addActionListener(new ActionListener() {
|
||||
|
@ -117,7 +117,7 @@ public class ControllerManager {
|
||||
break;
|
||||
}
|
||||
if (c != null) { // I don't like that starting the Thread happens here =/
|
||||
if(Settings.AUTO_ACTIVATE_CONTROLLER){
|
||||
if (Settings.AUTO_ACTIVATE_CONTROLLER) {
|
||||
c.setActive(true);
|
||||
}
|
||||
new Thread(c).start();
|
||||
|
@ -26,17 +26,11 @@ import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.extern.java.Log;
|
||||
import net.ash.HIDToVPADNetworkClient.controller.Controller.ControllerType;
|
||||
import net.ash.HIDToVPADNetworkClient.util.Settings.Platform;
|
||||
|
||||
//TODO autosave IP addr
|
||||
|
||||
@Log
|
||||
public class Settings {
|
||||
@ -92,10 +86,10 @@ public class Settings {
|
||||
Settings.ipAddr = prop.getProperty("ipAddr");
|
||||
String autoActivatingControllerString = prop.getProperty("autoActivatingController");
|
||||
|
||||
if(autoActivatingControllerString != null){ //We don't combine the if statements to keep the default value.
|
||||
if(autoActivatingControllerString.equals("true")){
|
||||
if (autoActivatingControllerString != null) { // We don't combine the if statements to keep the default value.
|
||||
if (autoActivatingControllerString.equals("true")) {
|
||||
Settings.AUTO_ACTIVATE_CONTROLLER = true;
|
||||
}else{
|
||||
} else {
|
||||
Settings.AUTO_ACTIVATE_CONTROLLER = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user