Skip to content

Commit

Permalink
- fixes #713
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Aug 27, 2024
1 parent 903e508 commit 937a605
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package mediathek.gui.dialogEinstellungen;

import mediathek.config.Daten;
import mediathek.config.Konstanten;
import mediathek.config.MVConfig;
import mediathek.controller.SenderFilmlistLoadApprover;
import mediathek.gui.messages.FilmListImportTypeChangedEvent;
Expand Down Expand Up @@ -134,6 +135,8 @@ private void setupSenderList() {
senderCbList.add(checkBox26);
}

private boolean warningDialogShown;

private void senderSelectionItemHandler(ItemEvent e) {
var cb = (JCheckBox)e.getSource();
var selected = cb.isSelected();
Expand All @@ -144,6 +147,13 @@ private void senderSelectionItemHandler(ItemEvent e) {
SenderFilmlistLoadApprover.deny(sender);

senderSelectionChanged = true;
SwingUtilities.invokeLater(() -> {
if (!warningDialogShown) {
var msg = "<html>Bei Änderungen an den Sendern <b>muss</b> zwingend ein Neustart durchgeführt werden.</html>";
JOptionPane.showMessageDialog(this, msg, Konstanten.PROGRAMMNAME, JOptionPane.WARNING_MESSAGE);
warningDialogShown = true;
}
});
}

private boolean senderSelectionChanged;
Expand Down

0 comments on commit 937a605

Please sign in to comment.