mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-11-05 04:45:44 +01:00
Fix show new indicator default
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user