mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
More fixes
This commit is contained in:
parent
e428ea052f
commit
f5846611d1
4 changed files with 9 additions and 11 deletions
|
@ -84,7 +84,7 @@ public abstract class DialogComp extends Comp<CompStructure<Region>> {
|
|||
public abstract Comp<?> content();
|
||||
|
||||
protected Comp<?> scrollPane(Comp<?> content) {
|
||||
var entry = content().styleClass("dialog-content");
|
||||
var entry = content.styleClass("dialog-content");
|
||||
return Comp.of(() -> {
|
||||
var entryR = entry.createRegion();
|
||||
var sp = new ScrollPane(entryR);
|
||||
|
|
|
@ -120,8 +120,6 @@ public class App extends Application {
|
|||
|
||||
public void focus() {
|
||||
PlatformThread.runLaterIfNeeded(() -> {
|
||||
stage.setAlwaysOnTop(true);
|
||||
stage.setAlwaysOnTop(false);
|
||||
stage.requestFocus();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -40,8 +40,6 @@ public class BaseMode extends OperationMode {
|
|||
TrackEvent.info("Initializing base mode components ...");
|
||||
AppExtensionManager.init(true);
|
||||
JacksonMapper.initModularized(AppExtensionManager.getInstance().getExtendedLayer());
|
||||
// Load translations before storage initialization to localize store error messages
|
||||
// Also loaded before antivirus alert to localize that
|
||||
AppI18n.init();
|
||||
LicenseProvider.get().init();
|
||||
AppPrefs.init();
|
||||
|
@ -61,9 +59,6 @@ public class BaseMode extends OperationMode {
|
|||
ActionProvider.initProviders();
|
||||
TrackEvent.info("Finished base components initialization");
|
||||
initialized = true;
|
||||
|
||||
var sec = new VaultKeySecretValue(new char[] {1, 2, 3});
|
||||
sec.getSecret();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -220,12 +220,12 @@ public abstract class DataStorage {
|
|||
|
||||
public abstract boolean supportsSharing();
|
||||
|
||||
public boolean shouldShare(DataStoreCategory entry) {
|
||||
if (!entry.canShare()) {
|
||||
public boolean shouldShare(DataStoreCategory category) {
|
||||
if (!category.canShare()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
DataStoreCategory c = entry;
|
||||
DataStoreCategory c = category;
|
||||
do {
|
||||
if (!c.shouldShareChildren()) {
|
||||
return false;
|
||||
|
@ -246,6 +246,11 @@ public abstract class DataStorage {
|
|||
|
||||
DataStoreEntry c = entry;
|
||||
do {
|
||||
// We can't check for sharing of invalid entries
|
||||
if (!c.getValidity().isUsable()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (c.getStore() instanceof LocalStore && entry.getProvider().isShareableFromLocalMachine()) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue