diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2019-11-05 06:07:15 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2019-11-05 06:11:18 +0300 |
commit | 1bbcc09c86fb033b378f023708c3290aec144b91 (patch) | |
tree | 5307f2041cb32e6df690a0e9987f5ce663cb694a /Duplicati/GUI | |
parent | 136a3baec2016aa16e417e2d0e2b8962ccfef162 (diff) |
Remove readonly keyword from fields that are set by deserializer.
Making these readonly resulted in startup issues when the password was
set for the UI.
See forum discussion here:
https://forum.duplicati.com/t/after-last-update-duplicati-doesnt-work-anymore/8369
Diffstat (limited to 'Duplicati/GUI')
-rw-r--r-- | Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs index 0ca5b64fd..574b9bfc5 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/HttpServerConnection.cs @@ -226,8 +226,13 @@ namespace Duplicati.GUI.TrayIcon private class SaltAndNonce
{
- public readonly string Salt = null;
- public readonly string Nonce = null;
+ // ReSharper disable once FieldCanBeMadeReadOnly.Local
+ // This cannot be made readonly as its value is set by a deserializer.
+ public string Salt = null;
+
+ // ReSharper disable once FieldCanBeMadeReadOnly.Local
+ // This cannot be made readonly as its value is set by a deserializer.
+ public string Nonce = null;
}
private SaltAndNonce GetSaltAndNonce()
|