mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-11-07 13:55:58 +01:00
Hide default icon to default false
This commit is contained in:
@@ -37,7 +37,7 @@ Preferences::Preferences( QObject *parent ) : QObject( parent )
|
||||
m_default_icon_type = PREF_DEFAULT_ICON_DEFAULT;
|
||||
m_default_icon_mime = "image/png";
|
||||
m_default_icon_data = QByteArray();
|
||||
m_hide_default_icon = true;
|
||||
m_hide_default_icon = false;
|
||||
|
||||
m_icon_type = PREF_BLANK_ICON;
|
||||
m_icon_mime = "image/png";
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>500</width>
|
||||
<height>540</height>
|
||||
<width>543</width>
|
||||
<height>600</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -96,10 +96,10 @@
|
||||
<item>
|
||||
<widget class="QCheckBox" name="hideDefaultIconCheckBox">
|
||||
<property name="text">
|
||||
<string>Hide icon (KDE)</string>
|
||||
<string>KDE integration (Hide)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -507,9 +507,9 @@
|
||||
</connection>
|
||||
</connections>
|
||||
<buttongroups>
|
||||
<buttongroup name="iconTypeGroup"/>
|
||||
<buttongroup name="minimizeTypeGroup"/>
|
||||
<buttongroup name="countTypeGroup"/>
|
||||
<buttongroup name="defaultIconTypeGroup"/>
|
||||
<buttongroup name="minimizeTypeGroup"/>
|
||||
<buttongroup name="iconTypeGroup"/>
|
||||
<buttongroup name="countTypeGroup"/>
|
||||
</buttongroups>
|
||||
</ui>
|
||||
|
||||
@@ -166,7 +166,7 @@ SysTrayX.Messaging = {
|
||||
const defaultIconType = result.defaultIconType || "0";
|
||||
const defaultIconMime = result.defaultIconMime || "image/png";
|
||||
const defaultIcon = result.defaultIcon || [];
|
||||
const hideDefaultIcon = result.hideDefaultIcon || "true";
|
||||
const hideDefaultIcon = result.hideDefaultIcon || "false";
|
||||
const iconType = result.iconType || "0";
|
||||
const iconMime = result.iconMime || "image/png";
|
||||
const icon = result.icon || [];
|
||||
|
||||
@@ -475,7 +475,7 @@ SysTrayX.RestoreOptions = {
|
||||
// Restore hide default icon callbacks
|
||||
//
|
||||
setHideDefaultIcon: function (result) {
|
||||
const hideDefaultIcon = result.hideDefaultIcon || "true";
|
||||
const hideDefaultIcon = result.hideDefaultIcon || "false";
|
||||
|
||||
const checkbox = document.querySelector(`input[name="hideDefaultIcon"]`);
|
||||
checkbox.checked = hideDefaultIcon === "true";
|
||||
|
||||
Reference in New Issue
Block a user