From e3a62be46ec9b0dc34a319b81511b4669469a523 Mon Sep 17 00:00:00 2001 From: revenmartin Date: Tue, 25 May 2021 11:39:25 +0800 Subject: [PATCH] Scale: Fix frequent prompts --- src/qml/Display/Main.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/qml/Display/Main.qml b/src/qml/Display/Main.qml index 8d52bde..25ffc1a 100644 --- a/src/qml/Display/Main.qml +++ b/src/qml/Display/Main.qml @@ -321,9 +321,10 @@ ItemPage { break; } - rootWindow.showPassiveNotification(qsTr("Need to log in again to take effect"), "short") - - appearance.setDevicePixelRatio(value) + if (appearance.devicePixelRatio !== value) { + rootWindow.showPassiveNotification(qsTr("Need to log in again to take effect"), "short") + appearance.setDevicePixelRatio(value) + } } } }