mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-07-01 00:38:39 +02:00
Change startup type default
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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}"]`
|
||||
|
||||
Reference in New Issue
Block a user