Class BrowseNavigation
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
T-F112: the Archive Browser's Up decision, out of the WinUI view model so it is testable.
public static class BrowseNavigation
- Inheritance
-
BrowseNavigation
- Inherited Members
Methods
DecideListFailure(bool, ArchiveBrowseScope)
T-F319: an archive opened from a browsed real folder keeps that folder when its listing fails. The state is the one from before the open.
public static BrowseListFailureStep DecideListFailure(bool wasBrowsing, ArchiveBrowseScope priorScope)
Parameters
wasBrowsingboolpriorScopeArchiveBrowseScope
Returns
DecideUp(ArchiveBrowseScope, string, int, string?)
Where Up goes. A nested level's root pops to its parent before the outermost archive's root climbs into real folders (T-F98 before T-F107).
public static BrowseUpStep DecideUp(ArchiveBrowseScope scope, string currentFolderPath, int nestedDepth, string? archivePath)
Parameters
scopeArchiveBrowseScopecurrentFolderPathstringnestedDepthintarchivePathstring
Returns
KeepsOpenUnlisted(bool, MessageCode?)
T-F275 step 3c: whether an archive whose listing failed stays open with nothing listed, so it can be tested against the PAR2 files next to it. Not when Group Policy refused the format: an administrator's block is not damage, and the App does not open what is blocked.
public static bool KeepsOpenUnlisted(bool hasRecoveryFiles, MessageCode? listingError)
Parameters
hasRecoveryFilesboollistingErrorMessageCode?