From e4ee156cd0980bc27718ddbfc14693e6c61dd87a Mon Sep 17 00:00:00 2001 From: Quang Lam Date: Wed, 24 Jun 2020 01:15:33 +0700 Subject: [PATCH] Fix sidebar is always forciably shown when adding workspace --- public/libs/preferences.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/libs/preferences.js b/public/libs/preferences.js index f90af7462..2485fe8d9 100755 --- a/public/libs/preferences.js +++ b/public/libs/preferences.js @@ -93,12 +93,7 @@ const getPreference = (name) => { return cachedPreferences[name]; }; -const isPreferenceUnset = (name) => { - if (settings.get(`preferences.${v}.${name}`)) { - return false; - } - return true; -}; +const isPreferenceUnset = (name) => settings.get(`preferences.${v}.${name}`) == null; const setPreference = (name, value) => { sendToAllWindows('set-preference', name, value);