瀏覽代碼

Fix header checkbox for all folder notifications / watched

Antony Male 4 年之前
父節點
當前提交
da90cf64ba
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      src/SyncTrayzor/Pages/Settings/SettingsViewModel.cs
  2. 1 1
      src/SyncTrayzor/Properties/Resources.resx

+ 4 - 0
src/SyncTrayzor/Pages/Settings/SettingsViewModel.cs

@@ -307,8 +307,12 @@ namespace SyncTrayzor.Pages.Settings
             }
 
             this.FolderSettings.AddRange(folderSettings.OrderBy(x => x.FolderLabel));
+
             this.IsAnyFolderWatchEnabledInSyncthing = this.FolderSettings.Any(x => !x.IsWatchAllowed);
 
+            this.UpdateAreAllFoldersWatched();
+            this.UpdateAreAllFoldersNotified();
+
             this.NotifyOfPropertyChange(nameof(this.FolderSettings));
         }
 

+ 1 - 1
src/SyncTrayzor/Properties/Resources.resx

@@ -1002,4 +1002,4 @@ Please donate to my charity fundraising campaign.</value>
   <data name="BarAlertsView_IntelXeGraphics_DismissLink" xml:space="preserve">
     <value>Dismiss</value>
   </data>
-</root>
+</root>