feat: Added web notification of successful subscription import

This commit is contained in:
huzibaca
2024-09-13 11:24:49 +08:00
parent 3963c60fc1
commit dbc3723bdc
6 changed files with 16 additions and 4 deletions

View File

@@ -279,6 +279,7 @@ pub async fn resolve_scheme(param: String) -> Result<()> {
.body("Import profile success")
.show()
.unwrap();
handle::Handle::notice_message("import_sub_url::ok", "ok");
}
Err(e) => {
app_handle
@@ -288,6 +289,7 @@ pub async fn resolve_scheme(param: String) -> Result<()> {
.body(format!("Import profile failed: {e}"))
.show()
.unwrap();
handle::Handle::notice_message("import_sub_url::error", e.clone());
bail!("Import profile failed: {e}");
}
}