mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 12:52:06 -04:00
greeter: try to fix random nixos issue
This commit is contained in:
@@ -14,6 +14,7 @@ Singleton {
|
||||
|
||||
property string lastSessionId: ""
|
||||
property string lastSuccessfulUser: ""
|
||||
property bool memoryReady: false
|
||||
property bool isLightMode: false
|
||||
property bool nightModeEnabled: false
|
||||
|
||||
@@ -75,11 +76,18 @@ Singleton {
|
||||
FileView {
|
||||
id: memoryFileView
|
||||
path: root.memoryFile
|
||||
blockLoading: true
|
||||
blockLoading: false
|
||||
blockWrites: false
|
||||
atomicWrites: true
|
||||
watchChanges: false
|
||||
printErrors: false
|
||||
onLoaded: {
|
||||
parseMemory(memoryFileView.text());
|
||||
root.memoryReady = true;
|
||||
}
|
||||
onLoadFailed: {
|
||||
root.memoryReady = true;
|
||||
}
|
||||
}
|
||||
|
||||
FileView {
|
||||
|
||||
@@ -132,7 +132,7 @@ Item {
|
||||
function onLastSuccessfulUserChanged() {
|
||||
applyLastSuccessfulUser();
|
||||
}
|
||||
function onLastSessionIdChanged() {
|
||||
function onMemoryReadyChanged() {
|
||||
finalizeSessionSelection();
|
||||
}
|
||||
}
|
||||
@@ -1030,6 +1030,8 @@ Item {
|
||||
function finalizeSessionSelection() {
|
||||
if (GreeterState.sessionList.length === 0)
|
||||
return;
|
||||
if (!GreetdMemory.memoryReady)
|
||||
return;
|
||||
|
||||
const savedSession = GreetdMemory.lastSessionId;
|
||||
if (savedSession) {
|
||||
|
||||
Reference in New Issue
Block a user