Merge pull request #4 from JG2401/develop

show message only if files exist
This commit is contained in:
JG2401
2025-01-05 17:19:38 +01:00
committed by GitHub

View File

@@ -40,6 +40,8 @@ while ($true) {
} }
if($files.Count -gt 0)
{
#NOTIFICATION #NOTIFICATION
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null
$template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02) $template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
@@ -58,6 +60,7 @@ while ($true) {
$notifier = [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("DownloadsFileSync") $notifier = [Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("DownloadsFileSync")
$notifier.Show($toast); $notifier.Show($toast);
}
#START-SLEEP #START-SLEEP