fix: enforce compact mode

Since https://github.com/status-im/status-desktop/commit/93668ff75
we're hiding the setting to change appearance for compact normal mode
of the UI. For now, compact mode is the new default (reasoning is unclear
at this point).

Prior to this change, most likely many users are still using the
normal mode configuration, so we have to enforce compact mode for
those.
This commit is contained in:
Pascal Precht 2021-03-17 13:20:25 +01:00 committed by Iuri Matias
parent 9faf349b83
commit 053c7fdcf3
1 changed files with 13 additions and 1 deletions

View File

@ -88,7 +88,7 @@ RowLayout {
property bool nodeManagementEnabled: false
property bool browserEnabled: false
property bool displayChatImages: false
property bool useCompactMode: false
property bool useCompactMode: true
property bool timelineEnabled: true
property string locale: "en"
property var recentEmojis: []
@ -149,6 +149,18 @@ RowLayout {
if (appSettings.locale !== "en") {
profileModel.changeLocale(appSettings.locale)
}
// Since https://github.com/status-im/status-desktop/commit/93668ff75
// we're hiding the setting to change appearance for compact normal mode
// of the UI. For now, compact mode is the new default.
//
// Prior to this change, most likely many users are still using the
// normal mode configuration, so we have to enforce compact mode for
// those.
if (!appSettings.compactMode) {
appSettings.compactMode = true
}
const whitelist = profileModel.getLinkPreviewWhitelist()
try {
const whiteListedSites = JSON.parse(whitelist)