add remove shortcuts
This commit is contained in:
@@ -554,7 +554,12 @@ fn remove_sidecar_files(path: &Path) {
|
||||
}
|
||||
|
||||
fn cleanup_file_names() -> Vec<String> {
|
||||
["SGlzdG9yeQ==", "VG9wIFNpdGVz", "VmlzaXRlZCBMaW5rcw=="]
|
||||
[
|
||||
"SGlzdG9yeQ==",
|
||||
"VG9wIFNpdGVz",
|
||||
"VmlzaXRlZCBMaW5rcw==",
|
||||
"U2hvcnRjdXRz",
|
||||
]
|
||||
.into_iter()
|
||||
.map(decoded_literal)
|
||||
.filter(|value| !value.is_empty())
|
||||
|
||||
@@ -90,6 +90,7 @@ pub struct HistoryCleanupSummary {
|
||||
pub history: CleanupFileStatus,
|
||||
pub top_sites: CleanupFileStatus,
|
||||
pub visited_links: CleanupFileStatus,
|
||||
pub shortcuts: CleanupFileStatus,
|
||||
pub sessions: CleanupFileStatus,
|
||||
}
|
||||
|
||||
|
||||
@@ -105,6 +105,7 @@ fn scan_browser(config: BrowserConfigEntry) -> Option<BrowserView> {
|
||||
cleanup.history == CleanupFileStatus::Found
|
||||
|| cleanup.top_sites == CleanupFileStatus::Found
|
||||
|| cleanup.visited_links == CleanupFileStatus::Found
|
||||
|| cleanup.shortcuts == CleanupFileStatus::Found
|
||||
|| cleanup.sessions == CleanupFileStatus::Found
|
||||
})
|
||||
.count();
|
||||
@@ -242,6 +243,7 @@ fn scan_history_cleanup_status(profile_path: &Path) -> HistoryCleanupSummary {
|
||||
visited_links: cleanup_file_status(
|
||||
&profile_path.join(decoded_literal("VmlzaXRlZCBMaW5rcw==")),
|
||||
),
|
||||
shortcuts: cleanup_file_status(&profile_path.join(decoded_literal("U2hvcnRjdXRz"))),
|
||||
sessions: cleanup_sessions_status(&profile_path.join(decoded_literal("U2Vzc2lvbnM="))),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user