Skip to content

Commit c42bc44

Browse files
committed
Update
1 parent 755085a commit c42bc44

File tree

6 files changed

+6
-17
lines changed

6 files changed

+6
-17
lines changed

src/Files.App.Storage/Storables/WindowsStorage/IWindowsFile.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Files Community
22
// Licensed under the MIT License.
33

4-
using Windows.Win32;
5-
using Windows.Win32.UI.Shell;
6-
74
namespace Files.App.Storage
85
{
96
public interface IWindowsFile : IWindowsStorable, IChildFile

src/Files.App.Storage/Storables/WindowsStorage/IWindowsFolder.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Files Community
22
// Licensed under the MIT License.
33

4-
using Windows.Win32;
5-
using Windows.Win32.UI.Shell;
6-
74
namespace Files.App.Storage
85
{
96
public interface IWindowsFolder : IWindowsStorable, IChildFolder

src/Files.App/Data/Contracts/IWidgetCardItem.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ namespace Files.App.Data.Contracts
77
{
88
public interface IWidgetCardItem<T>
99
{
10-
string? Path { get; }
11-
1210
T Item { get; }
1311

1412
BitmapImage Thumbnail { get; }

src/Files.App/Data/Items/WidgetCardItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ namespace Files.App.Data.Items
88
/// </summary>
99
public abstract class WidgetCardItem : ObservableObject
1010
{
11-
public virtual object? Item { get; set; }
12-
1311
public virtual string? Path { get; set; }
12+
13+
public virtual object? Item { get; set; }
1414
}
1515
}

src/Files.App/ViewModels/UserControls/Widgets/DrivesWidgetViewModel.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
using Windows.System;
99
using Windows.UI.Core;
1010
using Windows.Win32;
11-
using Windows.Win32.Foundation;
12-
using Windows.Win32.System.Com;
13-
using Windows.Win32.System.WinRT;
1411
using Windows.Win32.UI.Shell;
1512

1613
namespace Files.App.ViewModels.UserControls.Widgets
@@ -236,6 +233,8 @@ private async void UserSettingsService_OnSettingChangedEvent(object? sender, Set
236233

237234
public void Dispose()
238235
{
236+
foreach (var item in Items)
237+
item.Dispose();
239238
}
240239
}
241240
}

src/Files.App/ViewModels/UserControls/Widgets/NetworkLocationsWidgetViewModel.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33

44
using Microsoft.UI.Input;
55
using Microsoft.UI.Xaml.Controls;
6-
using OwlCore.Storage;
76
using System.Collections.Specialized;
87
using System.Windows.Input;
98
using Windows.System;
109
using Windows.UI.Core;
1110
using Windows.Win32;
12-
using Windows.Win32.Foundation;
13-
using Windows.Win32.System.Com;
14-
using Windows.Win32.System.WinRT;
1511
using Windows.Win32.UI.Shell;
1612

1713
namespace Files.App.ViewModels.UserControls.Widgets
@@ -228,6 +224,8 @@ private async void Items_CollectionChanged(object? sender, NotifyCollectionChang
228224

229225
public void Dispose()
230226
{
227+
foreach (var item in Items)
228+
item.Dispose();
231229
}
232230
}
233231
}

0 commit comments

Comments
 (0)