mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Webtop fixes
This commit is contained in:
parent
4b77e0b4a6
commit
10d5541386
2 changed files with 5 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue