mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-20 12:42:06 +02:00
Update MainWindow.java
This commit is contained in:
@@ -661,6 +661,8 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
||||
saveHistory();
|
||||
});
|
||||
historyButtonClear.addActionListener(event -> {
|
||||
if (Utils.getConfigBoolean("history.warn_before_delete", true)) {
|
||||
|
||||
JPanel checkChoise = new JPanel();
|
||||
checkChoise.setLayout(new FlowLayout());
|
||||
JButton yesButton = new JButton("YES");
|
||||
@@ -685,9 +687,20 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
||||
HISTORY.clear();
|
||||
try {
|
||||
historyTableModel.fireTableDataChanged();
|
||||
} catch (Exception e) { }
|
||||
} catch (Exception e) {
|
||||
}
|
||||
saveHistory();
|
||||
});
|
||||
}
|
||||
else {
|
||||
Utils.clearURLHistory();
|
||||
HISTORY.clear();
|
||||
try {
|
||||
historyTableModel.fireTableDataChanged();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
saveHistory();
|
||||
}
|
||||
});
|
||||
|
||||
// Re-rip all history
|
||||
|
Reference in New Issue
Block a user