Merge pull request #145 from Estajxo/master

Prevent computer name / host name from being deleted between sessions.
This commit is contained in:
Laurent Clouet
2018-04-07 21:30:27 +02:00
committed by GitHub

View File

@@ -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()) {