Fix show new indicator default

This commit is contained in:
Ximi1970
2023-08-29 21:13:42 +02:00
parent 9aab507f8e
commit 27c488aaf5
3 changed files with 3 additions and 2 deletions

View File

@@ -65,6 +65,7 @@ Preferences::Preferences( QObject *parent ) : QObject( parent )
m_theme = PREF_THEME_LIGHT;
m_show_number = true;
m_show_new_indicator = false;
m_number_color = "#000000";
m_number_size = 10;
m_count_type = PREF_COUNT_UNREAD;

View File

@@ -598,7 +598,7 @@ SysTrayX.Messaging = {
const icon = result.icon || [];
const theme = result.theme || "0";
const showNumber = result.showNumber || "true";
const showNewIndicator = result.showNewIndicator || "true";
const showNewIndicator = result.showNewIndicator || "false";
const countType = result.countType || "0";
const startupDelay = result.startupDelay || "5";
let numberColor = result.numberColor || "#000000";

View File

@@ -924,7 +924,7 @@ SysTrayX.RestoreOptions = {
// Restore show new indicator state
//
setShowNewIndicator: function (result) {
const showNewIndicator = result.showNewIndicator || "true";
const showNewIndicator = result.showNewIndicator || "false";
const checkbox = document.querySelector(`input[name="showNewIndicator"]`);
checkbox.checked = showNewIndicator === "true";