Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5bfa committed Mar 9, 2024
1 parent 14fb329 commit 0cefd95
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Files.App/GlobalUsings.cs
Expand Up @@ -50,7 +50,7 @@
global using global::Files.App.Services;
global using global::Files.App.UserControls;
global using global::Files.App.UserControls.TabBar;
global using global::Files.App.UserControls.ViewModels.Widgets;
global using global::Files.App.UserControls.Widgets;
global using global::Files.App.ViewModels;
global using global::Files.App.ViewModels.UserControls;
global using global::Files.App.ViewModels.UserControls.Widgets;
Expand Down
Expand Up @@ -3,7 +3,11 @@

namespace Files.App.ViewModels.UserControls.Widgets
{
/// <summary>
/// Represents view model of <see cref="DrivesWidget"/>.
/// </summary>
public class DrivesWidgetViewModel
{
public ObservableCollection<WidgetDriveCardItem> Items { get; } = [];
}
}
Expand Up @@ -3,8 +3,11 @@

using Files.Shared.Utils;

namespace Files.App.UserControls.ViewModels.Widgets
namespace Files.App.ViewModels.UserControls.Widgets
{
/// <summary>
/// Represents view model of <see cref="FileTagsWidget"/>.
/// </summary>
public sealed partial class FileTagsWidgetViewModel : ObservableObject, IAsyncInitialize
{
// Dependency injections
Expand All @@ -17,14 +20,13 @@ public sealed partial class FileTagsWidgetViewModel : ObservableObject, IAsyncIn

// Properties

public ObservableCollection<WidgetFileTagsContainerItem> Containers { get; }
public ObservableCollection<WidgetFileTagsContainerItem> Containers { get; } = [];

// Constructor

public FileTagsWidgetViewModel(Func<string, Task> openAction)
{
_openAction = openAction;
Containers = new();
}

// Methods
Expand Down
Expand Up @@ -3,7 +3,11 @@

namespace Files.App.ViewModels.UserControls.Widgets
{
/// <summary>
/// Represents view model of <see cref="QuickAccessWidget"/>.
/// </summary>
public class QuickAccessWidgetViewModel
{
public ObservableCollection<WidgetFolderCardItem> Items { get; } = [];
}
}
Expand Up @@ -3,7 +3,11 @@

namespace Files.App.ViewModels.UserControls.Widgets
{
/// <summary>
/// Represents view model of <see cref="RecentFilesWidget"/>.
/// </summary>
public class RecentFilesWidgetViewModel
{
public ObservableCollection<RecentItem> Items { get; } = [];
}
}

0 comments on commit 0cefd95

Please sign in to comment.