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();
|
cachePath = config.getStorageDir().getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
String hostnameText = null;
|
String hostnameText = hostname.getText();
|
||||||
if (hostname.getText() != null && hostname.getText().equals(parent.getConfiguration().getHostname()) == false) {
|
if (hostnameText == null || hostnameText.isEmpty()) {
|
||||||
hostnameText = hostname.getText();
|
hostnameText = parent.getConfiguration().getHostname();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (saveFile.isSelected()) {
|
if (saveFile.isSelected()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user