mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 07:20:35 +00:00
[stage]
This commit is contained in:
@@ -24,7 +24,7 @@ public class AppAotTrain {
|
||||
true);
|
||||
AppLayoutModel.get().selectSettings();
|
||||
ThreadHelper.sleep(1000);
|
||||
// AppLayoutModel.get().selectLicense();
|
||||
AppLayoutModel.get().selectLicense();
|
||||
ThreadHelper.sleep(1000);
|
||||
AppLayoutModel.get().selectBrowser();
|
||||
ThreadHelper.sleep(5000);
|
||||
|
||||
@@ -61,6 +61,10 @@ public class WorkspaceManager {
|
||||
}
|
||||
|
||||
private void save() {
|
||||
if (AppProperties.get().isAotTrainMode() ||AppProperties.get().isTest() || workspaces.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
var file = AppProperties.get().getDefaultReleaseDataDir().resolve("workspaces.json");
|
||||
JacksonMapper.getDefault().writeValue(file.toFile(), workspaces);
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package io.xpipe.app.prefs;
|
||||
|
||||
import io.xpipe.app.comp.BaseRegionBuilder;
|
||||
import io.xpipe.app.comp.RegionBuilder;
|
||||
import io.xpipe.app.comp.base.ButtonComp;
|
||||
import io.xpipe.app.core.AppI18n;
|
||||
import io.xpipe.app.core.AppProperties;
|
||||
import io.xpipe.app.platform.LabelGraphic;
|
||||
import io.xpipe.app.platform.OptionsBuilder;
|
||||
import io.xpipe.app.util.DocumentationLink;
|
||||
@@ -28,7 +30,7 @@ public class WorkspacesCategory extends AppPrefsCategory {
|
||||
.nameAndDescription("workspaceManagement")
|
||||
.documentationLink(DocumentationLink.WORKSPACES)
|
||||
.licenseRequirement("workspaces")
|
||||
.addComp(new WorkspaceOverviewComp().maxWidth(getCompWidth())))
|
||||
.addComp(AppProperties.get().isAotTrainMode() ? RegionBuilder.empty() : new WorkspaceOverviewComp().maxWidth(getCompWidth())))
|
||||
.buildComp();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user