Differences

This shows you the differences between the selected revisions of the page.

2020-07-15 2020-08-20
Bug 1888: Display session name and operation status in console title of Keep Local Directory up to Date extension (martin) Keep local directory up to date extension fails if error occurs before session URL is parsed (martin)
Line 25: Line 25:
# @description  Periodically scans for changes in a remote directory and ^ # @description  Periodically scans for changes in a remote directory and ^
#                  reflects them on a local directory #                  reflects them on a local directory
-# @version      8+# @version      9
# @homepage    ~~SELF~~ # @homepage    ~~SELF~~
# @require      WinSCP 5.16 # @require      WinSCP 5.16
Line 84: Line 84:
function SetConsoleTitle ($status) function SetConsoleTitle ($status)
{ {
-    $Host.UI.RawUI.WindowTitle = "$($sessionOptions.ToString()) - $status"+    if ($sessionOptions) 
 +····{ 
 +········$status = "$($sessionOptions.ToString()) - $status" 
 +    } 
 +    $Host.UI.RawUI.WindowTitle = $status
} }

Last modified: by martin