Skip to content

Commit cba09f4

Browse files
authored
Feature: Removed Bundles (#12616)
1 parent 8293169 commit cba09f4

File tree

21 files changed

+4
-2016
lines changed

21 files changed

+4
-2016
lines changed

src/Files.App/App.xaml.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
192192
.AddSingleton<ILayoutSettingsService, LayoutSettingsService>((sp) => new LayoutSettingsService((sp.GetService<IUserSettingsService>() as UserSettingsService).GetSharingContext()))
193193
.AddSingleton<IAppSettingsService, AppSettingsService>((sp) => new AppSettingsService((sp.GetService<IUserSettingsService>() as UserSettingsService).GetSharingContext()))
194194
.AddSingleton<IFileTagsSettingsService, FileTagsSettingsService>()
195-
.AddSingleton<IBundlesSettingsService, BundlesSettingsService>()
196195
.AddSingleton<IPageContext, PageContext>()
197196
.AddSingleton<IContentPageContext, ContentPageContext>()
198197
.AddSingleton<IDisplayPageContext, DisplayPageContext>()
@@ -343,9 +342,6 @@ await SafetyExtensions.IgnoreExceptions(async () =>
343342
public static void SaveSessionTabs()
344343
{
345344
IUserSettingsService userSettingsService = Ioc.Default.GetRequiredService<IUserSettingsService>();
346-
IBundlesSettingsService bundlesSettingsService = Ioc.Default.GetRequiredService<IBundlesSettingsService>();
347-
348-
bundlesSettingsService.FlushSettings();
349345

350346
userSettingsService.GeneralSettingsService.LastSessionTabList = MainPageViewModel.AppInstances.DefaultIfEmpty().Select(tab =>
351347
{

src/Files.App/Constants.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ public static class ColumnViewBrowser
141141

142142
public static class Widgets
143143
{
144-
public static class Bundles
145-
{
146-
public const int MaxAmountOfItemsPerBundle = 8;
147-
}
148-
149144
public static class Drives
150145
{
151146
public const float LowStorageSpacePercentageThreshold = 90.0f;
@@ -158,12 +153,8 @@ public static class LocalSettings
158153
{
159154
public const string DateTimeFormat = "datetimeformat";
160155

161-
public const string Theme = "theme";
162-
163156
public const string SettingsFolderName = "settings";
164157

165-
public const string BundlesSettingsFileName = "bundles.json";
166-
167158
public const string UserSettingsFileName = "user_settings.json";
168159

169160
public const string FileTagSettingsFileName = "filetags.json";

src/Files.App/Data/EventArguments/BundlesOpenPathEventArgs.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Files.App/Helpers/WidgetsHelpers.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ public static bool TryGetIsWidgetSettingEnabled<TWidget>(IGeneralSettingsService
5252
{
5353
return generalSettingsService.ShowFileTagsWidget;
5454
}
55-
if (typeof(TWidget) == typeof(BundlesWidget))
56-
{
57-
return generalSettingsService.ShowBundlesWidget;
58-
}
5955
if (typeof(TWidget) == typeof(RecentFilesWidget))
6056
{
6157
return generalSettingsService.ShowRecentFilesWidget;

src/Files.App/ServicesImplementation/Settings/BundlesSettingsService.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/Files.App/ServicesImplementation/Settings/GeneralSettingsService.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ public bool ShowFileTagsWidget
108108
set => Set(value);
109109
}
110110

111-
public bool ShowBundlesWidget
112-
{
113-
get => Get(false);
114-
set => Set(value);
115-
}
116-
117111
public bool FoldersWidgetExpanded
118112
{
119113
get => Get(true);
@@ -138,12 +132,6 @@ public bool FileTagsWidgetExpanded
138132
set => Set(value);
139133
}
140134

141-
public bool BundlesWidgetExpanded
142-
{
143-
get => Get(true);
144-
set => Set(value);
145-
}
146-
147135
public bool ShowFavoritesSection
148136
{
149137
get => Get(true);
@@ -247,10 +235,8 @@ protected override void RaiseOnSettingChangedEvent(object sender, SettingChanged
247235
case nameof(ShowQuickAccessWidget):
248236
case nameof(ShowRecentFilesWidget):
249237
case nameof(ShowDrivesWidget):
250-
case nameof(ShowBundlesWidget):
251238
case nameof(FoldersWidgetExpanded):
252239
case nameof(RecentFilesWidgetExpanded):
253-
case nameof(BundlesWidgetExpanded):
254240
case nameof(DrivesWidgetExpanded):
255241
case nameof(ShowFavoritesSection):
256242
case nameof(ShowLibrarySection):

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,51 +1053,9 @@
10531053
<data name="SidebarCloudDrives" xml:space="preserve">
10541054
<value>Cloud Drives</value>
10551055
</data>
1056-
<data name="BundlesWidgetOptionsFlyoutExportBundlesMenuItem.Text" xml:space="preserve">
1057-
<value>Export Bundles</value>
1058-
</data>
1059-
<data name="BundlesWidgetOptionsFlyoutImportBundlesMenuItem.Text" xml:space="preserve">
1060-
<value>Import Bundles</value>
1061-
</data>
1062-
<data name="BundlesWidgetAddBundleErrorAlreadyExists" xml:space="preserve">
1063-
<value>Bundle with the same name already exists!</value>
1064-
</data>
1065-
<data name="BundleItemFlyouOpenItemLocationMenuItem.Text" xml:space="preserve">
1066-
<value>Open item location</value>
1067-
</data>
1068-
<data name="BundleItemFlyouRemoveFromBundleMenuItem.Text" xml:space="preserve">
1069-
<value>Remove from bundle</value>
1070-
</data>
1071-
<data name="BundleOptionsFlyoutRemoveBundleMenuItem.Text" xml:space="preserve">
1072-
<value>Remove Bundle</value>
1073-
</data>
1074-
<data name="Bundles" xml:space="preserve">
1075-
<value>Bundles</value>
1076-
</data>
1077-
<data name="BundleNoContentsTextBlock.Text" xml:space="preserve">
1078-
<value>Drag and drop any file or folder here to quickly access it</value>
1079-
</data>
1080-
<data name="EnterBundleName" xml:space="preserve">
1081-
<value>Enter Bundle name</value>
1082-
</data>
1083-
<data name="BundlesWidgetRenameBundleDialogSubtitleText" xml:space="preserve">
1084-
<value>Enter new name</value>
1085-
</data>
1086-
<data name="BundlesWidgetRenameBundleDialogTitleText" xml:space="preserve">
1087-
<value>Rename "{0}"</value>
1088-
</data>
1089-
<data name="CreateBundle" xml:space="preserve">
1090-
<value>Create Bundle</value>
1091-
</data>
10921056
<data name="Confirm" xml:space="preserve">
10931057
<value>Confirm</value>
10941058
</data>
1095-
<data name="BundlesWidgetCreateBundleDialogSubtitleText" xml:space="preserve">
1096-
<value>Add Bundle</value>
1097-
</data>
1098-
<data name="BundleOptionsFlyoutRenameBundleMenuItem.Text" xml:space="preserve">
1099-
<value>Rename Bundle</value>
1100-
</data>
11011059
<data name="DesiredName" xml:space="preserve">
11021060
<value>Desired name</value>
11031061
</data>
@@ -1197,9 +1155,6 @@
11971155
<data name="DrivesWidgetOptionsFlyoutMapNetDriveMenuItem.Text" xml:space="preserve">
11981156
<value>Map network drive</value>
11991157
</data>
1200-
<data name="BundlesWidgetMoreOptionsButton.AutomationProperties.Name" xml:space="preserve">
1201-
<value>More bundles options</value>
1202-
</data>
12031158
<data name="SidebarFavorites" xml:space="preserve">
12041159
<value>Favorites</value>
12051160
</data>
@@ -1215,9 +1170,6 @@
12151170
<data name="Arguments" xml:space="preserve">
12161171
<value>Arguments</value>
12171172
</data>
1218-
<data name="BundlesOpenInNewPane.Text" xml:space="preserve">
1219-
<value>Open in new Pane</value>
1220-
</data>
12211173
<data name="Default" xml:space="preserve">
12221174
<value>Default</value>
12231175
</data>
@@ -1800,12 +1752,6 @@
18001752
<data name="AddFile" xml:space="preserve">
18011753
<value>Add file</value>
18021754
</data>
1803-
<data name="BundleOptionsFlyoutAddFolderMenuItem.Text" xml:space="preserve">
1804-
<value>Add folder</value>
1805-
</data>
1806-
<data name="BundleOptionsFlyoutAddItemMenuItem.Text" xml:space="preserve">
1807-
<value>Add item...</value>
1808-
</data>
18091755
<data name="ConsentDialogTitle" xml:space="preserve">
18101756
<value>Updates available</value>
18111757
</data>
@@ -1887,9 +1833,6 @@
18871833
<data name="CredentialDialogUserName.PlaceholderText" xml:space="preserve">
18881834
<value>UserName</value>
18891835
</data>
1890-
<data name="BundlesWidgetAutomationProperties.Name" xml:space="preserve">
1891-
<value>Bundles Widget</value>
1892-
</data>
18931836
<data name="DrivesWidgetAutomationProperties.Name" xml:space="preserve">
18941837
<value>Drives Widget</value>
18951838
</data>
@@ -2445,12 +2388,6 @@
24452388
<data name="ViewMore" xml:space="preserve">
24462389
<value>View more</value>
24472390
</data>
2448-
<data name="BundlesBeingRemovedMessage" xml:space="preserve">
2449-
<value>But don't worry, we built a fantastic replacement that's more reliable and has more features. You can enable the File Tags widget from Settings &gt; Preferences &gt; Widgets. Enabling the tags widget will automatically turn off the bundles widget.</value>
2450-
</data>
2451-
<data name="BundlesBeingRemovedTitle" xml:space="preserve">
2452-
<value>Bundles will be retiring in a future update 📎</value>
2453-
</data>
24542391
<data name="ShowEditTagsMenu" xml:space="preserve">
24552392
<value>Show edit tags flyout</value>
24562393
</data>

0 commit comments

Comments
 (0)