1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

greeter: don't override manually selected session with saved/defaul

This commit is contained in:
bbedward
2026-07-24 11:47:59 -04:00
parent 39278860c8
commit 8321d28d18
2 changed files with 4 additions and 0 deletions
@@ -1773,6 +1773,7 @@ Item {
const idx = GreeterState.sessionList.indexOf(value); const idx = GreeterState.sessionList.indexOf(value);
if (idx < 0) if (idx < 0)
return; return;
GreeterState.sessionManuallySelected = true;
GreeterState.currentSessionIndex = idx; GreeterState.currentSessionIndex = idx;
GreeterState.selectedSession = GreeterState.sessionExecs[idx]; GreeterState.selectedSession = GreeterState.sessionExecs[idx];
GreeterState.selectedSessionPath = GreeterState.sessionPaths[idx]; GreeterState.selectedSessionPath = GreeterState.sessionPaths[idx];
@@ -1785,6 +1786,8 @@ Item {
property string currentSessionName: GreeterState.sessionList[GreeterState.currentSessionIndex] || "" property string currentSessionName: GreeterState.sessionList[GreeterState.currentSessionIndex] || ""
function finalizeSessionSelection() { function finalizeSessionSelection() {
if (GreeterState.sessionManuallySelected)
return;
if (GreeterState.sessionList.length === 0) if (GreeterState.sessionList.length === 0)
return; return;
if (!GreetdMemory.memoryReady) if (!GreetdMemory.memoryReady)
@@ -21,6 +21,7 @@ Singleton {
property var sessionPaths: [] property var sessionPaths: []
property var sessionDesktopIds: [] property var sessionDesktopIds: []
property int currentSessionIndex: 0 property int currentSessionIndex: 0
property bool sessionManuallySelected: false
property var availableUsers: [] property var availableUsers: []
property int selectedUserIndex: -1 property int selectedUserIndex: -1