mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
feat: Added web notification of successful subscription import
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user