mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-04 03:40:32 +00:00
Small fixes
This commit is contained in:
@@ -41,6 +41,7 @@ public abstract class BrowserAction extends StoreAction<FileSystemStore> {
|
||||
model = (BrowserFileSystemTabModel) found.get();
|
||||
var target = getTargetDirectory(model);
|
||||
model.cdSync(target.toString());
|
||||
model.startIfNeeded();
|
||||
} else {
|
||||
model = BrowserFullSessionModel.DEFAULT.openFileSystemSync(
|
||||
ref.asNeeded(),
|
||||
|
||||
@@ -197,7 +197,7 @@ public final class BrowserFileSystemTabModel extends BrowserStoreSessionTab<File
|
||||
});
|
||||
}
|
||||
|
||||
private void startIfNeeded() throws Exception {
|
||||
public void startIfNeeded() throws Exception {
|
||||
var s = fileSystem.getShell();
|
||||
if (s.isPresent()) {
|
||||
s.get().start();
|
||||
|
||||
@@ -85,6 +85,10 @@ public class DataStateHandler {
|
||||
}
|
||||
|
||||
public boolean canCacheToStorage(DataStore store) {
|
||||
if (DataStorage.get() == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var entry = DataStorage.get().getStoreEntryIfPresent(store, true).or(() -> DataStorage.get()
|
||||
.getStoreEntryInProgressIfPresent(store));
|
||||
return entry.isPresent();
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ServiceAddressRotation {
|
||||
}
|
||||
|
||||
var alias = aliases[counter++ % aliases.length];
|
||||
var replaced = url.replace("localhost", alias);
|
||||
var replaced = url.replaceFirst("localhost", alias);
|
||||
replacedUrls.put(url, replaced);
|
||||
return replaced;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user