mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-18 07:16:31 +00:00
Webtop fixes
This commit is contained in:
@@ -16,9 +16,7 @@ import io.xpipe.app.util.XPipeSession;
|
||||
import io.xpipe.core.util.FailableRunnable;
|
||||
import io.xpipe.core.util.XPipeDaemonMode;
|
||||
import io.xpipe.core.util.XPipeInstallation;
|
||||
|
||||
import javafx.application.Platform;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
package io.xpipe.app.prefs;
|
||||
|
||||
import io.xpipe.app.core.AppCache;
|
||||
import io.xpipe.app.core.AppLayoutModel;
|
||||
import io.xpipe.app.core.AppProperties;
|
||||
import io.xpipe.app.core.AppTheme;
|
||||
import io.xpipe.app.core.*;
|
||||
import io.xpipe.app.ext.PrefsHandler;
|
||||
import io.xpipe.app.ext.PrefsProvider;
|
||||
import io.xpipe.app.fxcomps.Comp;
|
||||
@@ -46,7 +43,7 @@ public class AppPrefs {
|
||||
final BooleanProperty dontAcceptNewHostKeys =
|
||||
mapVaultSpecific(new SimpleBooleanProperty(false), "dontAcceptNewHostKeys", Boolean.class);
|
||||
final BooleanProperty performanceMode = map(
|
||||
new SimpleBooleanProperty(XPipeDistributionType.get() == XPipeDistributionType.WEBTOP),
|
||||
new SimpleBooleanProperty(),
|
||||
"performanceMode",
|
||||
Boolean.class);
|
||||
public final BooleanProperty useBundledTools =
|
||||
@@ -489,6 +486,9 @@ public class AppPrefs {
|
||||
if (rdpClientType.get() == null) {
|
||||
rdpClientType.setValue(ExternalRdpClientType.determineDefault());
|
||||
}
|
||||
if (AppState.get().isInitialLaunch()) {
|
||||
performanceMode.setValue(XPipeDistributionType.get() == XPipeDistributionType.WEBTOP);
|
||||
}
|
||||
}
|
||||
|
||||
public Comp<?> getCustomComp(String id) {
|
||||
|
||||
Reference in New Issue
Block a user