mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-03-26 17:52:24 +01:00
remove tauri warnings
This commit is contained in:
@@ -7,7 +7,7 @@ use lazy_static::lazy_static;
|
|||||||
use std::sync::Mutex;
|
use std::sync::Mutex;
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use sysinfo::{ProcessExt, System, SystemExt};
|
use sysinfo::{System, SystemExt};
|
||||||
|
|
||||||
use open;
|
use open;
|
||||||
use structs::{APIQuery};
|
use structs::{APIQuery};
|
||||||
@@ -67,13 +67,13 @@ fn process_watcher() {
|
|||||||
s.refresh_all();
|
s.refresh_all();
|
||||||
|
|
||||||
// Grab the game process name
|
// Grab the game process name
|
||||||
let mut proc = WATCH_GAME_PROCESS.lock().unwrap().to_string();
|
let proc = WATCH_GAME_PROCESS.lock().unwrap().to_string();
|
||||||
|
|
||||||
if !&proc.is_empty() {
|
if !&proc.is_empty() {
|
||||||
let mut proc_with_name = s.processes_by_exact_name(&proc);
|
let proc_with_name = s.processes_by_exact_name(&proc);
|
||||||
let mut exists = false;
|
let mut exists = false;
|
||||||
|
|
||||||
for p in proc_with_name {
|
for _p in proc_with_name {
|
||||||
exists = true;
|
exists = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,9 @@ import { fs } from '@tauri-apps/api'
|
|||||||
import { dataDir } from '@tauri-apps/api/path'
|
import { dataDir } from '@tauri-apps/api/path'
|
||||||
|
|
||||||
let configFilePath: string
|
let configFilePath: string
|
||||||
let roamingAppData: string
|
|
||||||
let defaultConfig: Configuration
|
let defaultConfig: Configuration
|
||||||
|
|
||||||
(async() => {
|
(async() => {
|
||||||
roamingAppData = await dataDir()
|
|
||||||
|
|
||||||
defaultConfig = {
|
defaultConfig = {
|
||||||
toggle_grasscutter: false,
|
toggle_grasscutter: false,
|
||||||
game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game\\Genshin Impact.exe',
|
game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game\\Genshin Impact.exe',
|
||||||
|
|||||||
Reference in New Issue
Block a user