Prevent computer name / host name from being deleted between sessions. For details, see https://www.sheepit-renderfarm.com/forum/viewtopic.php?f=9&t=1010

This commit is contained in:
Eric
2018-04-07 21:13:39 +02:00
parent f4238d3dba
commit 6f02d72df2

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