File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/Files.App/ViewModels/UserControls/Widgets Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,18 @@ public DrivesWidgetViewModel()
4444 EjectDeviceCommand = new RelayCommand < WidgetDriveCardItem > ( ExecuteEjectDeviceCommand ) ;
4545 OpenPropertiesCommand = new RelayCommand < WidgetDriveCardItem > ( ExecuteOpenPropertiesCommand ) ;
4646 DisconnectNetworkDriveCommand = new RelayCommand < WidgetDriveCardItem > ( ExecuteDisconnectNetworkDriveCommand ) ;
47+
48+ UserSettingsService . OnSettingChangedEvent += UserSettingsService_OnSettingChangedEvent ;
4749 }
4850
4951 // Methods
5052
53+ private async void UserSettingsService_OnSettingChangedEvent ( object ? sender , SettingChangedEventArgs e )
54+ {
55+ if ( e . SettingName == nameof ( UserSettingsService . FoldersSettingsService . SizeUnitFormat ) )
56+ await RefreshWidgetAsync ( ) ;
57+ }
58+
5159 public async Task RefreshWidgetAsync ( )
5260 {
5361 var updateTasks = Items . Select ( item => item . Item . UpdatePropertiesAsync ( ) ) ;
You can’t perform that action at this time.
0 commit comments