mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
not launch when lunch state is set
This commit is contained in:
@@ -42,6 +42,7 @@ export class BSLauncherService{
|
|||||||
|
|
||||||
public launch(version: BSVersion, oculus: boolean, desktop: boolean, debug: boolean): Promise<NotificationResult|string>{
|
public launch(version: BSVersion, oculus: boolean, desktop: boolean, debug: boolean): Promise<NotificationResult|string>{
|
||||||
const lauchOption: LauchOption = {debug, oculus, desktop, version};
|
const lauchOption: LauchOption = {debug, oculus, desktop, version};
|
||||||
|
if(this.launchState$.value){ return this.notificationService.notifyError({title: "notifications.bs-launch.errors.titles.BS_ALREADY_RUNNING"}); }
|
||||||
this.launchState$.next(version);
|
this.launchState$.next(version);
|
||||||
return this.ipcService.send<LaunchResult>("bs-launch.launch", {args: lauchOption}).then(res => {
|
return this.ipcService.send<LaunchResult>("bs-launch.launch", {args: lauchOption}).then(res => {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user