Change startup type default

This commit is contained in:
Ximi1970
2023-11-15 13:03:21 +01:00
parent 03d47fd172
commit 0182238bdf
5 changed files with 12 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ Preferences::Preferences( QObject *parent ) : QObject( parent )
m_close_type = PREF_MINIMIZE_MAIN_CLOSE_CHILDREN_WINDOWS;
m_minimize_icon_type = PREF_MINIMIZE_TRAY_ICON;
m_startup_type = PREF_START_DOCKED;
m_startup_type = PREF_START_DEFAULT;
m_restore_window_positions = false;
m_default_icon_type = PREF_DEFAULT_ICON_DEFAULT;

View File

@@ -118,6 +118,9 @@
<property name="text">
<string>Default startup</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">startupTypeGroup</string>
</attribute>
@@ -139,7 +142,7 @@
<string>Start application in tray</string>
</property>
<property name="checked">
<bool>true</bool>
<bool>false</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">startupTypeGroup</string>
@@ -1214,13 +1217,13 @@
</resources>
<connections/>
<buttongroups>
<buttongroup name="defaultIconTypeGroup"/>
<buttongroup name="closeTypeGroup"/>
<buttongroup name="iconTypeGroup"/>
<buttongroup name="startupTypeGroup"/>
<buttongroup name="minimizeIconTypeGroup"/>
<buttongroup name="newIndicatorTypeGroup"/>
<buttongroup name="countTypeGroup"/>
<buttongroup name="minimizeTypeGroup"/>
<buttongroup name="minimizeIconTypeGroup"/>
<buttongroup name="closeTypeGroup"/>
<buttongroup name="defaultIconTypeGroup"/>
<buttongroup name="startupTypeGroup"/>
</buttongroups>
</ui>

View File

@@ -644,7 +644,7 @@ SysTrayX.Messaging = {
const minimizeType = result.minimizeType || "1";
const minimizeIconType = result.minimizeIconType || "1";
const closeType = result.closeType || "1";
const startupType = result.startupType || "2";
const startupType = result.startupType || "0";
const restorePositions = result.restorePositions || "false";
const defaultIconType = result.defaultIconType || "0";
const defaultIconMime = result.defaultIconMime || "image/png";

View File

@@ -27,7 +27,7 @@ async function getApiCountMethod() {
//
async function getStartupType() {
function resolve(result) {
const startupType = result.startupType || "2";
const startupType = result.startupType || "0";
return startupType;
}

View File

@@ -685,7 +685,7 @@ SysTrayX.RestoreOptions = {
// Restore start minimized callbacks
//
setStartupType: function (result) {
const startupType = result.startupType || "2";
const startupType = result.startupType || "0";
const radioButton = document.querySelector(
`input[name="startupType"][value="${startupType}"]`