This commit is contained in:
lksz 2021-06-29 23:16:39 -04:00
commit 187eb22b99
1 changed files with 3 additions and 1 deletions

View File

@ -104,7 +104,9 @@ class SessionData {
static [void] Load() {
if( -not [SessionData]::Path ) { [SessionData]::Init() }
[SessionData]::Data = Import-Clixml -Path $([SessionData]::Path)
if( Test-Path $([SessionData]::Path) ) {
[SessionData]::Data = Import-Clixml -Path $([SessionData]::Path)
}
}
static [void] Set([string]$Name,[object]$Value) {