mirror of
https://github.com/JG2401/DownloadsFileSync.git
synced 2026-08-28 20:20:11 +00:00
show message only if files exist
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user