Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/macos-apple-silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
if: github.ref == 'refs/heads/develop'
name: Build macOS ${{ matrix.arch }} nightly
runs-on: ${{ matrix.runner }}
strategy:
Expand Down Expand Up @@ -125,6 +126,7 @@ jobs:
aws --endpoint-url "https://${S3_ENDPOINT}" s3 cp "target/media/${FILE_NAME}.sha512" "s3://${S3_BUCKET}/${FILE_NAME}.sha512"

build-windows-arm64:
if: github.ref == 'refs/heads/develop'
name: Build Windows ARM64 nightly
runs-on: windows-11-arm

Expand Down Expand Up @@ -223,6 +225,7 @@ jobs:
aws --endpoint-url $endpoint s3 cp "target\media\$zipName.sha512" "s3://$bucket/$zipName.sha512"

build-windows-amd64:
if: github.ref == 'refs/heads/develop'
name: Build Windows AMD64 nightly
runs-on: windows-latest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private void setupThemaComboBox() {
jcbThema.setSelectedItem(thema);
jcbThema.addActionListener(_ -> {
var sel = (String) jcbThema.getSelectedItem();
if (sel != null) {
if (sel != null && !sel.isEmpty()) {
filterConfig.setThema(sel);
}
MessageBus.getMessageBus().publish(new ReloadTableDataEvent());
Expand Down Expand Up @@ -303,11 +303,14 @@ private void restoreConfigSettings() {
cbDontShowAudioVersions.setSelected(filterConfig.isDontShowAudioVersions());
cbDontShowDuplicates.setSelected(filterConfig.isDontShowDuplicates());

//setSelectedItem wird 2x benötigt, da sonst entweder das Thema gar nicht geladen wird aus der Config, bzw. nicht in der Combobox angezeigt wird
jcbThema.setSelectedItem(filterConfig.getThema());

((SenderCheckBoxList) senderList).restoreFilterConfig();
((FilmLengthSlider) filmLengthSlider).restoreFilterConfig(filterConfig);

spZeitraum.restoreFilterConfig(filterConfig);
jcbThema.setSelectedItem(filterConfig.getThema());
}

private void enableControls(boolean enable) {
Expand Down Expand Up @@ -613,8 +616,9 @@ public void actionPerformed(ActionEvent e) {
existingFilter.ifPresentOrElse(_ -> {
//if a filter already exists we cannot rename...
JOptionPane.showMessageDialog(MediathekGui.ui(),
String.format("Filter %s existiert bereits.\nAktion wird abgebrochen", fName),
Konstanten.PROGRAMMNAME, JOptionPane.ERROR_MESSAGE);
String.format(
"Filter %s existiert bereits.\nAktion wird abgebrochen", fName),
Konstanten.PROGRAMMNAME, JOptionPane.ERROR_MESSAGE);
}, () -> {
// no existing name...
Configuration config = ApplicationConfiguration.getConfiguration();
Expand All @@ -626,9 +630,9 @@ public void actionPerformed(ActionEvent e) {
config.unlock(LockMode.WRITE);
logger.trace("Renamed filter \"{}\" to \"{}\"", fltName, fName);
});
}
else
} else {
logger.warn("New and old filter name are identical...doing nothing");
}
}
else {
JOptionPane.showMessageDialog(MediathekGui.ui(), "Filtername darf nicht leer sein!",
Expand Down