/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Contracts/IGeneralSettingsService.cs
362 строки
12 KB
yair100
Code Quality: Store sidebar group expansion state (#18654)
29 июн 2026, 18:26
Не верифицирован
29 июн 2026, 18:26
929dd44
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. namespace Files.App.Data.Contracts { public interface IGeneralSettingsService : IBaseSettingsService, INotifyPropertyChanged { /// <summary> /// Gets or sets a value indicating whether or not to navigate to a specific location when launching the app. /// </summary> bool OpenSpecificPageOnStartup { get; set; } /// <summary> /// Gets or sets a value indicating the default startup location. /// </summary> string OpenSpecificPageOnStartupPath { get; set; } /// <summary> /// Gets or sets a value indicating whether or not continue the last session whenever the app is launched. /// </summary> bool ContinueLastSessionOnStartUp { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to open a page when the app is launched. /// </summary> bool OpenNewTabOnStartup { get; set; } /// <summary> /// Gets or sets a value indicating whether or not opening Files from another app should open a tab in the existing instance. /// </summary> bool OpenTabInExistingInstance { get; set; } /// <summary> /// A list containing all paths to open at startup. /// </summary> List<string> TabsOnStartupList { get; set; } /// <summary> /// A list containing all paths to tabs closed on last session. /// </summary> List<string> LastSessionTabList { get; set; } /// <summary> /// Gets or sets the index of the tab that was active when the last session ended. /// </summary> int LastSessionSelectedTabIndex { get; set; } /// <summary> /// A list containing paths of the tabs from the previous session that crashed. /// </summary> List<string> LastCrashedTabList { get; set; } /// <summary> /// A list containing paths previously entered in the path bar. /// </summary> List<string> PathHistoryList { get; set; } /// <summary> /// A list containing previous search queries. /// </summary> List<string> PreviousSearchQueriesList { get; set; } /// <summary> /// Stores list of paths where archives have previously been extracted. /// </summary> List<string> PreviousArchiveExtractionLocations { get; set; } /// <summary> /// Gets or sets a value indicating which date and time format to use. /// </summary> DateTimeFormats DateTimeFormat { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to always open a second pane when opening a new tab. /// </summary> bool AlwaysOpenDualPaneInNewTab { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to always switch to newly opened tab. /// </summary> bool AlwaysSwitchToNewlyOpenedTab { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to reverse the mouse wheel direction used to switch tabs. /// </summary> bool ReverseTabScrollDirection { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to display the quick access widget. /// </summary> bool ShowQuickAccessWidget { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to display the recent files widget. /// </summary> bool ShowRecentFilesWidget { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to display the drives widget. /// </summary> bool ShowDrivesWidget { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to display the network locations widget. /// </summary> bool ShowNetworkLocationsWidget { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to display the file tags widget. /// </summary> bool ShowFileTagsWidget { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to expand the folders widget. /// </summary> bool FoldersWidgetExpanded { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to expand the recent files widget. /// </summary> bool RecentFilesWidgetExpanded { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to expand the drives widget. /// </summary> bool DrivesWidgetExpanded { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to expand the network locations widget. /// </summary> bool NetworkLocationsWidgetExpanded { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to expand the file tags widget. /// </summary> bool FileTagsWidgetExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the favorites section should be visible. /// </summary> bool ShowPinnedSection { get; set; } /// <summary> /// Gets or sets a value indicating if the library section should be visible. /// </summary> bool ShowLibrarySection { get; set; } /// <summary> /// Gets or sets a value indicating if the drive section should be visible. /// </summary> bool ShowDrivesSection { get; set; } /// <summary> /// Gets or sets a value indicating if the cloud drive section should be visible. /// </summary> bool ShowCloudDrivesSection { get; set; } /// <summary> /// Gets or sets a value indicating if the network section should be visible. /// </summary> bool ShowNetworkSection { get; set; } /// <summary> /// Gets or sets a value indicating if the wsl section should be visible. /// </summary> bool ShowWslSection { get; set; } /// <summary> /// Gets or sets a value indicating if the tags section should be visible. /// </summary> bool ShowFileTagsSection { get; set; } /// <summary> /// Gets or sets a value indicating if the pinned section should be expanded. /// </summary> bool IsPinnedSectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the library section should be expanded. /// </summary> bool IsLibrarySectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the drive section should be expanded. /// </summary> bool IsDriveSectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the cloud drive section should be expanded. /// </summary> bool IsCloudDriveSectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the network section should be expanded. /// </summary> bool IsNetworkSectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the wsl section should be expanded. /// </summary> bool IsWslSectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating if the file tags section should be expanded. /// </summary> bool IsFileTagsSectionExpanded { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to move shell extensions into a sub menu. /// </summary> bool MoveShellExtensionsToSubMenu { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the edit tags menu. /// </summary> bool ShowEditTagsMenu { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to pin to the sidebar. /// </summary> bool ShowPinToSideBar { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to pin to the start menu. /// </summary> bool ShowPinToStart { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to open folders in a new tab. /// </summary> bool ShowOpenInNewTab { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to open folders in a new window. /// </summary> bool ShowOpenInNewWindow { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to open folders in a new pane. /// </summary> bool ShowOpenInNewPane { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to open folders in Windows Terminal. /// </summary> bool ShowOpenTerminal { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to copy an items path. /// </summary> bool ShowCopyPath { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to create alternate data stream. /// </summary> bool ShowCreateAlternateDataStream { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to create a shortcut. /// </summary> bool ShowCreateShortcut { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the option to create folder with selection. /// </summary> bool ShowCreateFolderWithSelection { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the compression options e.g. create archive, extract files. /// </summary> bool ShowCompressionOptions { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the flatten options e.g. single, recursive. /// </summary> bool ShowFlattenOptions { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the Send To menu. /// </summary> bool ShowSendToMenu { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to leave app running in the background. /// </summary> bool LeaveAppRunning { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show Files in the system tray. /// </summary> bool ShowSystemTrayIcon { get; set; } /// <summary> /// Gets or sets a value indicating the default option to resolve conflicts. /// </summary> FileNameConflictResolveOptionType ConflictsResolveOption { get; set; } /// <summary> /// Gets or sets a value indicating the default archive format. /// </summary> ArchiveFormats ArchiveFormatsOption { get; set; } /// <summary> /// Gets or sets a value indicating the default archive compression level. /// </summary> ArchiveCompressionLevels ArchiveCompressionLevelsOption { get; set; } /// <summary> /// Gets or sets a value indicating the default archive splitting size. /// </summary> ArchiveSplittingSizes ArchiveSplittingSizesOption { get; set; } /// <summary> /// Gets or sets a value indicating the default archive dictionary size for 7z. /// </summary> ArchiveDictionarySizes ArchiveDictionarySizesOption { get; set; } /// <summary> /// Gets or sets a value indicating the default archive word size for 7z. /// </summary> ArchiveWordSizes ArchiveWordSizesOption { get; set; } /// <summary> /// A dictionary to determine which hashes should be shown. /// </summary> Dictionary<string, bool> ShowHashesDictionary { get; set; } /// <summary> /// Gets or sets a value indicating a random user ID. /// </summary> string UserId { get; set; } /// <summary> /// Gets or sets a value indicating the default arrangement for Dual Pane. /// </summary> ShellPaneArrangement ShellPaneArrangementOption { get; set; } /// <summary> /// Gets or sets a value indicating whether or not to show the shelf pane. /// </summary> bool ShowShelfPane { get; set; } /// <summary> /// Gets or sets a value whether the filter header should be displayed. /// </summary> bool ShowFilterHeader { get; set; } /// <summary> /// Gets or sets a value indicating whether thumbnail cache should be enabled. /// </summary> bool EnableThumbnailCache { get; set; } /// <summary> /// Gets or sets the thumbnail cache size limit in MB. /// </summary> double ThumbnailCacheSizeLimit { get; set; } /// Gets or sets a value indicating whether smooth scrolling is enabled. /// </summary> bool EnableSmoothScrolling { get; set; } } }