From 5ebe7e33ebe674250f24dc58ab9631650005c9b8 Mon Sep 17 00:00:00 2001 From: rokosun Date: Tue, 7 Nov 2023 08:00:48 +0100 Subject: [PATCH] Check if file exists instead of explicitly checking for symlink --- tromjaroWelcomeApp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tromjaroWelcomeApp.nim b/tromjaroWelcomeApp.nim index 1b043f2..cda2eb1 100644 --- a/tromjaroWelcomeApp.nim +++ b/tromjaroWelcomeApp.nim @@ -145,7 +145,7 @@ method view(app: AppState): Widget = Label {.hAlign: AlignEnd.}: text = "Open this Welcome Screen on every boot" Switch {.vAlign: AlignCenter, hAlign: AlignStart.}: - state = if symlinkExists(autostartSymlinkPath): true else: false + state = if fileExists(autostartSymlinkPath): true else: false proc changed(state: bool) = if state == true: if not symlinkExists(autostartSymlinkPath):