This commit is contained in:
crschnick
2025-01-25 17:56:57 +00:00
parent 26aa15819a
commit 8d46fdbf4d
6 changed files with 10 additions and 5 deletions

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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();

View File

@@ -28,7 +28,5 @@ public interface LicensedFeature {
boolean isSupported();
boolean isPreviewSupported();
void throwIfUnsupported() throws LicenseRequiredException;
}

View File

@@ -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;
}

View File

@@ -65,7 +65,7 @@ public abstract class BaseCompressAction implements BrowserAction, BrowserBranch
@Override
public Category getCategory() {
return Category.OPEN;
return Category.MUTATION;
}
@Override