Full offline compatibility

This commit is contained in:
Thoronium
2023-03-05 19:13:09 -07:00
parent abf7a428f6
commit ea73feb8e9
9 changed files with 250 additions and 170 deletions

View File

@@ -157,7 +157,8 @@ fn enable_process_watcher(window: tauri::Window, process: String) {
let mut system = System::new_all();
loop {
thread::sleep(std::time::Duration::from_secs(5));
// Shorten loop timer to avoid user closing Cultivation before unpatching/proxy disconnecting
thread::sleep(std::time::Duration::from_secs(2));
// Refresh system info
system.refresh_all();