1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(feat): added extension manager

This commit is contained in:
2025-02-27 23:51:21 +05:30
Verified
parent c6ae5c7e85
commit d835184b30
28 changed files with 1167 additions and 23 deletions

View File

@@ -11,7 +11,10 @@ pub struct Config {
impl Default for Config {
fn default() -> Self {
Self { port: 3030, theme: "system".to_string() }
Self {
port: 3030,
theme: "system".to_string(),
}
}
}

View File

@@ -50,7 +50,10 @@ async fn wait_for_port_availability(port: u16, max_attempts: u32) -> Result<(),
sleep(Duration::from_millis(500)).await;
attempts += 1;
}
Err(format!("Port {} did not become available after {} attempts", port, max_attempts))
Err(format!(
"Port {} did not become available after {} attempts",
port, max_attempts
))
}
async fn start_websocket_server(app_handle: tauri::AppHandle, port: u16) -> Result<(), String> {
@@ -357,6 +360,8 @@ pub async fn run() {
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_notification::init())
.plugin(tauri_plugin_http::init())
.plugin(tauri_plugin_upload::init())
.manage(websocket_state.clone())
.setup(move |app| {
// Create menu items