Commit Graph
13 Commits
Author SHA1 Message Date
Kenneth Hsu e6587a2c6f Fix retrieval of HAS_FIXED_INVALID_BACKUPID setting.
The previous implementation returned false for null or empty or
whitespace values, and true for unparsable values.  A default value of
false seems more appropriate for these cases.
2018-04-12 19:19:32 -07:00
Kenneth Hsu c15e4b17b6 Fix retrieval of SERVER_PORT_CHANGED setting.
The previous implementation returned true for null, empty or whitespace,
or unparsable values.  A default value of false seems more appropriate
for this setting.

Since the ServerSettings constructor initializes the m_values Dictionary
with keys from the CONST class, we can assume that the
SERVER_PORT_CHANGED key exists.
2018-04-08 19:36:41 -07:00
Kenneth Hsu b50b02a59b Fix retrieval of UNACKED_ERROR and UNACKED_WARNING settings.
The previous implementation returned true for null, empty or whitespace,
or unparsable values.  A default value of false seems more appropriate
for these settings.  In particular, if no warning or error has occurred
yet (e.g., upon first installation), these properties should return
false.

This addresses issue #3126.
2018-04-08 19:36:41 -07:00
Kenneth Hsu 6953ffe710 Simplify retrieval of HAS_ASKED_FOR_PASSWORD_PROTECTION setting.
The previous implementation:

	1. Assumes that the relevant key exists in the Dictionary.
 	2. Returns true if the value is null, empty or whitespace, or
	   unparsable.  Otherwise, it returns the parsed value.

 This simplifies the code while capturing the same logic.
2018-04-08 19:36:41 -07:00
Kenneth Hsu 7c55df81e2 Simplify retrieval of IS_FIRST_RUN setting.
The previous implementation:

	1. Assumes that the relevant key exists in the Dictionary.
	2. Returns true if the value is null, empty or whitespace, or
	   unparsable.  Otherwise, it returns the parsed value.

This simplifies the code while capturing the same logic.
2018-04-08 19:36:41 -07:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Kenneth Skovhede cae0fb7b9e Added nag dialog for first launch asking to set a password on multi-user machines. 2017-08-24 13:55:29 +02:00
Kenneth Skovhede 5cea95bb54 Merge branch 'tray_readpassword' of https://github.com/mnaiman/duplicati into tray_readpassword
# Conflicts:
#	Duplicati/Server/Database/ServerSettings.cs
2017-06-21 08:43:04 +02:00
Kenneth Skovhede da0de9983b Implemented the live throttle control.
This fixes #1730
This fixes #1261
2017-06-20 13:00:52 +02:00
Max c300c1fb47 added ability to survive password change or on/off 2017-05-03 00:03:16 +02:00
Max 91f4f79559 added posibility to read server password from database 2017-05-02 21:14:28 +02:00
Max 15ce7bab8a added support for ssl under linux 2017-02-11 23:39:42 +01:00
Kenneth Skovhede 53a7459f29 Fixed problem with UI saving global options in ApplicationSettings/ServerSettings.
This fixes #1720.
This fixes #1830
2016-09-23 23:23:44 +02:00