feat: add methods to retrieve current subscription details in PrfItem and refactor profile handling in IProfiles

This commit is contained in:
Tunglies
2025-11-04 12:03:03 +08:00
parent 0306f73841
commit 97769cf93a
6 changed files with 127 additions and 114 deletions
+1
View File
@@ -102,6 +102,7 @@ impl Handle {
Self::send_event(FrontendEvent::ProfileUpdateCompleted { uid });
}
// TODO 利用 &str 等缩短 Clone
pub fn notice_message<S: Into<String>, M: Into<String>>(status: S, msg: M) {
let handle = Self::global();
let status_str = status.into();