hide option, if no quick access service is present

This commit is contained in:
Armin Schrenk
2024-07-23 16:50:15 +02:00
parent 61fc53bf9c
commit e4e84d46b6
2 changed files with 5 additions and 1 deletions

View File

@@ -105,6 +105,10 @@ public class GeneralPreferencesController implements FxController {
});
}
public boolean isSomeQuickAccessServiceAvailable() {
return !quickAccessServices.isEmpty();
}
@FXML
public void showLogfileDirectory() {
environment.getLogDir().ifPresent(logDirPath -> application.getHostServices().showDocument(logDirPath.toUri().toString()));