From 9a2d503d3b3d2c0a4631ef6c26dcf1c6785a4e56 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Thu, 3 Aug 2017 14:55:09 +0200 Subject: Unify credential states Having two different enums around with more or less the same definition has lead to unclear code. After removing two not needed states on the mobile end, the remaining step to one enum for the credential state becomes almost is simple rename operation. Unfortunately, I do not know a way to embed a plain C enum from pref.h into the QMLManager object. So after this, there are still 2 enums around, but now identical. This commit is not changing any functionality. Signed-off-by: Jan Mulder --- core/pref.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/pref.h b/core/pref.h index 14699153e..f22999981 100644 --- a/core/pref.h +++ b/core/pref.h @@ -174,7 +174,8 @@ enum cloud_status { CS_UNKNOWN, CS_INCORRECT_USER_PASSWD, CS_NEED_TO_VERIFY, - CS_VERIFIED + CS_VERIFIED, + CS_NOCLOUD }; extern struct preferences prefs, default_prefs, git_prefs; -- cgit v1.2.3-70-g09d2