feat: add sync progress, break loops once we get 0 users back

This commit is contained in:
Sticks
2025-04-22 18:56:27 -04:00
parent ba25e5d485
commit 5a7c3155ac
13 changed files with 292 additions and 40 deletions

View File

@ -11,7 +11,7 @@ use std::io;
use commands::config::{get_config, init_config, save_config};
use commands::fansly::{
fansly_check_sync_token, fansly_get_me, fansly_set_token, fansly_sync,
fansly_upload_auto_sync_data,
fansly_upload_auto_sync_data, fansly_get_sync_status
};
use commands::utils::quit;
use tauri_plugin_autostart::MacosLauncher;
@ -66,7 +66,8 @@ async fn main() {
fansly_get_me,
fansly_sync,
fansly_upload_auto_sync_data,
fansly_check_sync_token
fansly_check_sync_token,
fansly_get_sync_status
])
.run(tauri::generate_context!())
.expect("error while running tauri application");