[chore] only check for linux with shouldLoadFromConfig function

This commit is contained in:
silentrald
2024-12-17 12:21:49 +08:00
parent da61b4e619
commit d6e611545e
+1 -1
View File
@@ -42,7 +42,7 @@ export class BSVersionLibService {
private async shouldLoadFromConfig(): Promise<boolean> {
// Some special cases of readonly memory installations
return IS_FLATPAK || this.linuxService.isNixOS();
return process.platform === "linux" && (IS_FLATPAK || this.linuxService.isNixOS());
}
private async getLocalVersions(): Promise<BSVersion[]> {