Only open browser after session is started

This commit is contained in:
crschnick 2024-10-17 08:21:30 +00:00
parent 1dd08fce8d
commit 0c85ba0425

View file

@ -54,10 +54,10 @@ public class BrowseStoreAction implements ActionProvider {
DataStoreEntry entry;
@Override
public void execute() {
public void execute() throws Exception {
DataStoreEntryRef<FileSystemStore> replacement =
ProcessControlProvider.get().replace(entry.ref());
BrowserSessionModel.DEFAULT.openFileSystemAsync(replacement, null, new SimpleBooleanProperty());
BrowserSessionModel.DEFAULT.openFileSystemSync(replacement, null, new SimpleBooleanProperty());
AppLayoutModel.get().selectBrowser();
}
}