mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-07 06:15:56 +02:00
Change minimize type default
This commit is contained in:
@@ -8,5 +8,4 @@
|
||||
//#define DEBUG_DISPLAY_ACTIONS_DETAILS
|
||||
//#define DEBUG_DISPLAY_ACTIONS_END
|
||||
|
||||
|
||||
#endif // DEBUG_H
|
||||
|
||||
@@ -62,7 +62,7 @@ Preferences::Preferences( QObject *parent ) : QObject( parent )
|
||||
m_number_alignment = 4;
|
||||
m_number_margins = QMargins();
|
||||
|
||||
m_minimize_type = PREF_MINIMIZE_METHOD_1;
|
||||
m_minimize_type = PREF_DEFAULT_MINIMIZE;
|
||||
m_start_minimized = false;
|
||||
m_close_type = PREF_MINIMIZE_MAIN_CLOSE_CHILDREN_WINDOWS;
|
||||
|
||||
|
||||
@@ -321,7 +321,7 @@
|
||||
<string>Default minimize</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">minimizeTypeGroup</string>
|
||||
@@ -334,7 +334,7 @@
|
||||
<string>Minimize to tray</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<attribute name="buttonGroup">
|
||||
<string notr="true">minimizeTypeGroup</string>
|
||||
@@ -694,11 +694,11 @@
|
||||
</resources>
|
||||
<connections/>
|
||||
<buttongroups>
|
||||
<buttongroup name="minimizeTypeGroup"/>
|
||||
<buttongroup name="defaultIconTypeGroup"/>
|
||||
<buttongroup name="closeTypeGroup"/>
|
||||
<buttongroup name="themeGroup"/>
|
||||
<buttongroup name="countTypeGroup"/>
|
||||
<buttongroup name="minimizeTypeGroup"/>
|
||||
<buttongroup name="defaultIconTypeGroup"/>
|
||||
<buttongroup name="iconTypeGroup"/>
|
||||
<buttongroup name="closeTypeGroup"/>
|
||||
</buttongroups>
|
||||
</ui>
|
||||
|
||||
@@ -348,6 +348,11 @@ void WindowCtrl::slotPositions( QList< QPoint > window_positions )
|
||||
{
|
||||
#ifdef Q_OS_UNIX
|
||||
|
||||
/*
|
||||
* Update the TB windows
|
||||
*/
|
||||
findWindows( m_ppid );
|
||||
|
||||
setPositions( window_positions );
|
||||
|
||||
#endif
|
||||
|
||||
@@ -302,7 +302,7 @@ SysTrayX.Messaging = {
|
||||
|
||||
sendPreferencesStorage: function (result) {
|
||||
const debug = result.debug || "false";
|
||||
const minimizeType = result.minimizeType || "1";
|
||||
const minimizeType = result.minimizeType || "0";
|
||||
const closeType = result.closeType || "1";
|
||||
const startMinimized = result.startMinimized || "false";
|
||||
const restorePositions = result.restorePositions || "false";
|
||||
|
||||
@@ -437,7 +437,7 @@ SysTrayX.RestoreOptions = {
|
||||
//
|
||||
setMinimizeType: function (result) {
|
||||
// const platformInfo = result.platformInfo || { os: "linux" };
|
||||
const minimizeType = result.minimizeType || "1";
|
||||
const minimizeType = result.minimizeType || "0";
|
||||
|
||||
// Tweak option for platform
|
||||
// if (platformInfo.os === "win") {
|
||||
|
||||
Reference in New Issue
Block a user