mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-07 15:33:57 +02:00
chore: cleanup
This commit is contained in:
@@ -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