mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-22 23:49:09 -04:00
Rework
This commit is contained in:
@@ -46,7 +46,7 @@ public class BrowserFileOpener {
|
||||
}
|
||||
|
||||
var rootSc = sc.identicalSubShell()
|
||||
.elevated(ElevationFunction.elevated("sudo"))
|
||||
.elevated(ElevationFunction.elevated(null))
|
||||
.start();
|
||||
var rootFs = new ConnectionFileSystem(rootSc);
|
||||
try {
|
||||
|
||||
@@ -165,6 +165,11 @@ public class AppDownloads {
|
||||
throw new IOException(response.body());
|
||||
}
|
||||
|
||||
var dateEntry = response.headers().firstValue("Date");
|
||||
if (dateEntry.isPresent()) {
|
||||
LicenseProvider.get().updateDate(dateEntry.get());
|
||||
}
|
||||
|
||||
var json = JacksonMapper.getDefault().readTree(response.body());
|
||||
var ver = json.required("version").asText();
|
||||
return ver;
|
||||
|
||||
@@ -16,6 +16,8 @@ public abstract class LicenseProvider {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
public abstract void updateDate(String date);
|
||||
|
||||
public abstract String formatExceptionMessage(String name, boolean plural, LicensedFeature licensedFeature);
|
||||
|
||||
public abstract boolean hasLicense();
|
||||
|
||||
@@ -28,7 +28,5 @@ public interface LicensedFeature {
|
||||
|
||||
boolean isSupported();
|
||||
|
||||
boolean isPreviewSupported();
|
||||
|
||||
void throwIfUnsupported() throws LicenseRequiredException;
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@
|
||||
-fx-background-color: -color-success-subtle;
|
||||
}
|
||||
|
||||
.root:key-navigation .browser .table-row-cell:focused {
|
||||
.root:key-navigation .browser .table-view:focus-within .table-row-cell:focused {
|
||||
-fx-background-color: -color-warning-subtle;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public abstract class BaseCompressAction implements BrowserAction, BrowserBranch
|
||||
|
||||
@Override
|
||||
public Category getCategory() {
|
||||
return Category.OPEN;
|
||||
return Category.MUTATION;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user