mirror of
https://github.com/JG2401/DownloadsFileSync.git
synced 2026-08-28 20:20:11 +00:00
Merge pull request #4 from JG2401/develop
show message only if files exist
This commit is contained in:
@@ -40,6 +40,8 @@ while ($true) {
|
||||
}
|
||||
|
||||
|
||||
if($files.Count -gt 0)
|
||||
{
|
||||
#NOTIFICATION
|
||||
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null
|
||||
$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.Show($toast);
|
||||
}
|
||||
|
||||
|
||||
#START-SLEEP
|
||||
|
||||
Reference in New Issue
Block a user