mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 10:08:32 +08:00
feat: runtime config viewer
This commit is contained in:
1 parent
2bb18b18b7
commit
1e7a86b7c0
7 files changed
+119
-8
No files matched your search
@@ -174,6 +174,13 @@ pub fn get_clash_info(core: State<'_, Core>) -> CmdResult<ClashInfo> {
|
||||
Ok(clash.info.clone())
|
||||
}
|
||||
|
||||
/// get the running clash config string
|
||||
#[tauri::command]
|
||||
pub fn get_running_config(core: State<'_, Core>) -> CmdResult<Option<String>> {
|
||||
let clash = core.clash.lock();
|
||||
Ok(clash.running_config.clone())
|
||||
}
|
||||
|
||||
/// update the clash core config
|
||||
/// after putting the change to the clash core
|
||||
/// then we should save the latest config
|
||||
|
||||
Reference in new issue
Block a user