mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[feature-274] add Oculus binary ids to versions json
This commit is contained in:
@@ -35,7 +35,7 @@ export class BsOculusDownloaderService {
|
||||
|
||||
private isUserTokenValid(token: string): boolean{
|
||||
|
||||
// Code take from "https://github.com/ComputerElite/QuestAppVersionSwitcher" (TokenTools.cs)
|
||||
// Code taken from "https://github.com/ComputerElite/QuestAppVersionSwitcher" (TokenTools.cs)
|
||||
|
||||
log.info("Checking if Oculus user token is valid");
|
||||
|
||||
@@ -116,13 +116,11 @@ export class BsOculusDownloaderService {
|
||||
|
||||
clearTimeout(timout);
|
||||
|
||||
if(window.isDestroyed()){ return; }
|
||||
|
||||
if(!saveToken){
|
||||
window.webContents.session.clearStorageData();
|
||||
this.clearTokenCookie();
|
||||
}
|
||||
|
||||
if(window.isClosable()){
|
||||
if(window.isClosable() && !window.isDestroyed()){
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
@@ -189,7 +187,6 @@ export class BsOculusDownloaderService {
|
||||
})().catch(err => obs.error(err));
|
||||
|
||||
return () => {
|
||||
console.log("C FINI MAIN 2");
|
||||
sub?.unsubscribe();
|
||||
this.oculusDownloader.stopDownload();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface BSVersion extends PartialBSVersion {
|
||||
oculus?: boolean;
|
||||
color?: string;
|
||||
downloadedFrom?: BsStore;
|
||||
OculusBinaryId?: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user