Merge pull request #145 from Estajxo/master
Prevent computer name / host name from being deleted between sessions.
This commit is contained in:
@@ -611,9 +611,9 @@ public class Settings implements Activity {
|
||||
cachePath = config.getStorageDir().getAbsolutePath();
|
||||
}
|
||||
|
||||
String hostnameText = null;
|
||||
if (hostname.getText() != null && hostname.getText().equals(parent.getConfiguration().getHostname()) == false) {
|
||||
hostnameText = hostname.getText();
|
||||
String hostnameText = hostname.getText();
|
||||
if (hostnameText == null || hostnameText.isEmpty()) {
|
||||
hostnameText = parent.getConfiguration().getHostname();
|
||||
}
|
||||
|
||||
if (saveFile.isSelected()) {
|
||||
|
||||
Reference in New Issue
Block a user