mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-11-06 05:15:47 +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_theme = PREF_THEME_LIGHT;
|
||||||
|
|
||||||
m_show_number = true;
|
m_show_number = true;
|
||||||
|
m_show_new_indicator = false;
|
||||||
m_number_color = "#000000";
|
m_number_color = "#000000";
|
||||||
m_number_size = 10;
|
m_number_size = 10;
|
||||||
m_count_type = PREF_COUNT_UNREAD;
|
m_count_type = PREF_COUNT_UNREAD;
|
||||||
|
|||||||
@@ -598,7 +598,7 @@ SysTrayX.Messaging = {
|
|||||||
const icon = result.icon || [];
|
const icon = result.icon || [];
|
||||||
const theme = result.theme || "0";
|
const theme = result.theme || "0";
|
||||||
const showNumber = result.showNumber || "true";
|
const showNumber = result.showNumber || "true";
|
||||||
const showNewIndicator = result.showNewIndicator || "true";
|
const showNewIndicator = result.showNewIndicator || "false";
|
||||||
const countType = result.countType || "0";
|
const countType = result.countType || "0";
|
||||||
const startupDelay = result.startupDelay || "5";
|
const startupDelay = result.startupDelay || "5";
|
||||||
let numberColor = result.numberColor || "#000000";
|
let numberColor = result.numberColor || "#000000";
|
||||||
|
|||||||
@@ -924,7 +924,7 @@ SysTrayX.RestoreOptions = {
|
|||||||
// Restore show new indicator state
|
// Restore show new indicator state
|
||||||
//
|
//
|
||||||
setShowNewIndicator: function (result) {
|
setShowNewIndicator: function (result) {
|
||||||
const showNewIndicator = result.showNewIndicator || "true";
|
const showNewIndicator = result.showNewIndicator || "false";
|
||||||
|
|
||||||
const checkbox = document.querySelector(`input[name="showNewIndicator"]`);
|
const checkbox = document.querySelector(`input[name="showNewIndicator"]`);
|
||||||
checkbox.checked = showNewIndicator === "true";
|
checkbox.checked = showNewIndicator === "true";
|
||||||
|
|||||||
Reference in New Issue
Block a user