fix: avoid showing local projects for remote machines

This commit is contained in:
Marc Kassubeck
2026-05-26 13:04:00 +02:00
parent 3270619f24
commit 418216b9b7
4 changed files with 24 additions and 5 deletions
@@ -19,7 +19,7 @@ export class MachineController {
}
}
async selectMachine(machine: Machine): Promise<void> {
async selectMachine(machine: Machine, options: { updateUrl?: boolean | undefined } = {}): Promise<void> {
if (this.getState().selectedMachine?.id === machine.id) return;
this.setState({
selectedMachine: machine,
@@ -35,7 +35,7 @@ export class MachineController {
activity: undefined,
...resetWorkspaceScopedState(),
});
this.updateUrl();
if (options.updateUrl !== false) this.updateUrl();
await this.projects.loadProjects();
}
}