Change minimize type default

This commit is contained in:
Ximi1970
2020-12-28 23:46:48 +01:00
parent 35520bbd88
commit 1cd73ae7f5
6 changed files with 13 additions and 9 deletions

View File

@@ -8,5 +8,4 @@
//#define DEBUG_DISPLAY_ACTIONS_DETAILS
//#define DEBUG_DISPLAY_ACTIONS_END
#endif // DEBUG_H

View File

@@ -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;

View File

@@ -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>

View File

@@ -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

View File

@@ -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";

View File

@@ -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") {