mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
feat: runtime config viewer
This commit is contained in:
@@ -347,12 +347,10 @@ impl Core {
|
||||
Clash::strict_filter(data)
|
||||
};
|
||||
|
||||
let (mut config, info) = {
|
||||
let clash = self.clash.lock();
|
||||
let config = clash.config.clone();
|
||||
let info = clash.info.clone();
|
||||
(config, info)
|
||||
};
|
||||
let mut clash = self.clash.lock();
|
||||
|
||||
let mut config = clash.config.clone();
|
||||
let info = clash.info.clone();
|
||||
|
||||
for (key, value) in data.into_iter() {
|
||||
config.insert(key, value);
|
||||
@@ -369,6 +367,9 @@ impl Core {
|
||||
Notice::from(window.clone())
|
||||
};
|
||||
|
||||
clash.set_running_config(&config);
|
||||
drop(clash);
|
||||
|
||||
let service = self.service.lock();
|
||||
service.set_config(info, config, notice)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user