Small fixes

This commit is contained in:
crschnick
2023-02-20 17:18:11 +00:00
parent aa95c746b9
commit 3b3f238b68
3 changed files with 4 additions and 4 deletions

View File

@@ -152,7 +152,8 @@ public interface ExternalTerminalType extends PrefsChoiceValue {
@Override
public void launch(String name, String command) throws Exception {
var custom = AppPrefs.get().customTerminalCommand().getValue();
if (custom == null || custom.trim().isEmpty()) {
if (custom == null || custom.isBlank()) {
ErrorEvent.fromMessage("No custom terminal command specified").reportable(false).handle();
return;
}