mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: remove pslist and use sudo-prompt to close game if needed
This commit is contained in:
parent
0f5db4f34e
commit
1397e3932d
14 changed files with 51 additions and 114 deletions
|
@ -17,6 +17,7 @@ import {
|
|||
PauseDownloadPayload,
|
||||
LibtorrentStatus,
|
||||
LibtorrentPayload,
|
||||
ProcessPayload,
|
||||
} from "./types";
|
||||
|
||||
export class RPCManager {
|
||||
|
@ -49,8 +50,10 @@ export class RPCManager {
|
|||
}
|
||||
}
|
||||
|
||||
public static async getProccessList() {
|
||||
return (await this.rpc.get<string[] | null>("/process-list")).data || [];
|
||||
public static async getProcessList() {
|
||||
return (
|
||||
(await this.rpc.get<ProcessPayload[] | null>("/process-list")).data || []
|
||||
);
|
||||
}
|
||||
|
||||
public static async getStatus() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue