mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-25 05:40:50 +02:00
chore: cleanup
This commit is contained in:
Generated
+12
-790
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,6 @@ tauri-plugin-shell = "2"
|
||||
tauri-plugin-deep-link = "2"
|
||||
tauri-plugin-dialog = "2"
|
||||
tauri-plugin-macos-permissions = "2"
|
||||
tauri-plugin-stronghold = "2"
|
||||
|
||||
|
||||
directories = "6"
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
"macos-permissions:allow-request-microphone-permission",
|
||||
"macos-permissions:allow-request-camera-permission",
|
||||
"macos-permissions:allow-check-microphone-permission",
|
||||
"macos-permissions:allow-check-camera-permission",
|
||||
"stronghold:default"
|
||||
"macos-permissions:allow-check-camera-permission"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -385,7 +385,6 @@ pub async fn save_app_settings(
|
||||
) -> Result<AppSettings, String> {
|
||||
let manager = SettingsManager::instance();
|
||||
|
||||
// If API is being enabled ensure token is stored in Stronghold.
|
||||
if settings.api_enabled {
|
||||
if let Some(ref token) = settings.api_token {
|
||||
manager
|
||||
@@ -410,7 +409,6 @@ pub async fn save_app_settings(
|
||||
settings.api_token = None;
|
||||
}
|
||||
|
||||
// Do not persist api_token in settings file (kept in Stronghold). Save a copy without the token.
|
||||
let mut persist_settings = settings.clone();
|
||||
persist_settings.api_token = None;
|
||||
manager
|
||||
@@ -492,8 +490,6 @@ pub async fn clear_all_version_cache_and_refetch(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// No standalone stronghold commands needed; token ops handled via settings commands
|
||||
|
||||
// Global singleton instance
|
||||
lazy_static::lazy_static! {
|
||||
static ref SETTINGS_MANAGER: SettingsManager = SettingsManager::new();
|
||||
|
||||
Reference in New Issue
Block a user