Skip to content

Commit 11653af

Browse files
committed
Load the first downloaded version by default
1 parent 6189890 commit 11653af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vm/byond.service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export class ByondService {
131131
void this.lock.run(async () => {
132132
for await (const version of (await this.getByondFolder()).keys()) {
133133
this._versions.set(version, VersionStatus.Fetched);
134+
// If this is the first version in the list, load it
135+
if (this._activeVersion == null) {
136+
await this.load(version, true);
137+
}
134138
}
135139
});
136140
void this.lock.run(() =>

0 commit comments

Comments
 (0)