mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Backup shortcuts (#144)
* Add initial option to back up shortcuts * Show list of backups * Reload backups on change * Restore backups * Improve UX of backup ui * Reorganize ui * Update version in cargo.toml * Update flatpak description * Update cargo-lock.json
This commit is contained in:
@@ -37,6 +37,12 @@ pub fn get_cache_file() -> PathBuf {
|
||||
get_config_folder().join("cache.json").to_path_buf()
|
||||
}
|
||||
|
||||
pub fn get_backups_flder() -> PathBuf {
|
||||
let backups_path = get_config_folder().join("backup");
|
||||
let _ = create_dir_all(&backups_path);
|
||||
backups_path.to_path_buf()
|
||||
}
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
pub fn get_boilr_links_path() -> PathBuf {
|
||||
get_config_folder().join("links").to_path_buf()
|
||||
|
||||
Reference in New Issue
Block a user