Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
fix: Server panel engine version check needs numeric engine version
Browse files Browse the repository at this point in the history
Was getting a string, which definitely would not work.
  • Loading branch information
qdot committed Jun 11, 2021
1 parent 8a0fa74 commit a888885
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/IntifaceConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ export class IntifaceConfiguration extends EventEmitter {
this.emit("update");
}

public get CurrentEngineVersionNumber(): number {
console.log(this.CurrentEngineVersion.substr(1));
return parseInt(this.CurrentEngineVersion.substr(1))
}

public get CurrentEngineVersion(): string {
return this.currentEngineVersion;
}
Expand Down
5 changes: 2 additions & 3 deletions packages/intiface/src/components/ServerPanel/ServerPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<v-flex
v-if="
config.HasUsableEngineExecutable &&
config.Engine === config.InstalledEngineType &&
config.currentDeviceFileVersion >= 48 &&
config.currentEngineVersion >= 36
config.CurrentDeviceFileVersion >= 48 &&
config.CurrentEngineVersionNumber >= 36
"
shrink
>
Expand Down

0 comments on commit a888885

Please sign in to comment.