mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 03:28:28 -04:00
greeter: don't override manually selected session with saved/defaul
This commit is contained in:
@@ -1773,6 +1773,7 @@ Item {
|
||||
const idx = GreeterState.sessionList.indexOf(value);
|
||||
if (idx < 0)
|
||||
return;
|
||||
GreeterState.sessionManuallySelected = true;
|
||||
GreeterState.currentSessionIndex = idx;
|
||||
GreeterState.selectedSession = GreeterState.sessionExecs[idx];
|
||||
GreeterState.selectedSessionPath = GreeterState.sessionPaths[idx];
|
||||
@@ -1785,6 +1786,8 @@ Item {
|
||||
property string currentSessionName: GreeterState.sessionList[GreeterState.currentSessionIndex] || ""
|
||||
|
||||
function finalizeSessionSelection() {
|
||||
if (GreeterState.sessionManuallySelected)
|
||||
return;
|
||||
if (GreeterState.sessionList.length === 0)
|
||||
return;
|
||||
if (!GreetdMemory.memoryReady)
|
||||
|
||||
@@ -21,6 +21,7 @@ Singleton {
|
||||
property var sessionPaths: []
|
||||
property var sessionDesktopIds: []
|
||||
property int currentSessionIndex: 0
|
||||
property bool sessionManuallySelected: false
|
||||
property var availableUsers: []
|
||||
property int selectedUserIndex: -1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user