From 93180b208409d60cb10ac5be2b86b195874fbcdf Mon Sep 17 00:00:00 2001
From: Slávek Banko <slavek.banko@axis.cz>
Date: Sun, 14 Jun 2026 15:50:58 +0200
Subject: KMix: Add a GUI item for Autostart to the settings.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Existing GUI item mentioning Autostart renamed to what it actually
sets - automatically restoring volume levels on login.

Fixed conditions in desktop files to look for settings in the General
section.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 kmix/behaviorconfig.ui            | 15 +++++++++++++--
 kmix/kmix.desktop                 |  2 +-
 kmix/kmix.kcfg                    |  7 ++++++-
 kmix/restore_kmix_volumes.desktop |  2 +-
 4 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/kmix/behaviorconfig.ui b/kmix/behaviorconfig.ui
index c448735f..29ddb8b3 100644
--- a/kmix/behaviorconfig.ui
+++ b/kmix/behaviorconfig.ui
@@ -21,12 +21,23 @@
         </property>
         <widget class="TQCheckBox">
             <property name="name">
-                <cstring>kcfg_starttdeRestore</cstring>
+                <cstring>kcfg_Autostart</cstring>
             </property>
             <property name="text">
                 <string>Automatically start mixer when you &amp;login</string>
             </property>
-            <property name="tristate">
+            <property name="checked">
+                <bool>true</bool>
+            </property>
+        </widget>
+        <widget class="TQCheckBox">
+            <property name="name">
+                <cstring>kcfg_starttdeRestore</cstring>
+            </property>
+            <property name="text">
+                <string>Automatically restore volume levels when you &amp;login</string>
+            </property>
+            <property name="checked">
                 <bool>true</bool>
             </property>
         </widget>
diff --git a/kmix/kmix.desktop b/kmix/kmix.desktop
index c2d55119..3454df12 100644
--- a/kmix/kmix.desktop
+++ b/kmix/kmix.desktop
@@ -16,5 +16,5 @@ X-TDE-StartupNotify=true
 X-DCOP-ServiceType=Unique
 X-TDE-autostart-phase=2
 X-TDE-autostart-after=panel
-X-TDE-autostart-condition=kmixrc::Autostart:true
+X-TDE-autostart-condition=kmixrc:General:Autostart:true
 Categories=Qt;TDE;AudioVideo;Audio;Mixer;
diff --git a/kmix/kmix.kcfg b/kmix/kmix.kcfg
index d4ca0956..73ba0c55 100644
--- a/kmix/kmix.kcfg
+++ b/kmix/kmix.kcfg
@@ -39,11 +39,16 @@
             <label>Volume Values</label>
             <whatsthis>How volume values are displayed</whatsthis>
         </entry>
-        <entry key="starttdeRestore" type="Bool">
+        <entry key="Autostart" type="Bool">
             <default>true</default>
             <label>Autostart</label>
             <whatsthis>Automatically start mixer when you login</whatsthis>
         </entry>
+        <entry key="starttdeRestore" type="Bool">
+            <default>true</default>
+            <label>Automatically restore volume</label>
+            <whatsthis>Automatically restore volume levels when you login</whatsthis>
+        </entry>
         <entry key="DockIconMuting" type="Bool">
             <default>false</default>
             <label>Middle click on system tray icon toggles muting</label>
diff --git a/kmix/restore_kmix_volumes.desktop b/kmix/restore_kmix_volumes.desktop
index 152708ad..1464de69 100644
--- a/kmix/restore_kmix_volumes.desktop
+++ b/kmix/restore_kmix_volumes.desktop
@@ -1,6 +1,6 @@
 [Desktop Entry]
 X-TDE-autostart-phase=1
-X-TDE-autostart-condition=kmixrc::starttdeRestore:true
+X-TDE-autostart-condition=kmixrc:General:starttdeRestore:true
 Type=Application
 Exec=kmixctrl --restore
 OnlyShowIn=TDE;
-- 
cgit v1.2.3

