mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-27 07:44:20 +02:00
Merge pull request #1805 from cyian-1756/tray-icon-fix
Fixed issue which caused ripme to fail to rip more than 1 url when running in the background
This commit is contained in:
@@ -1279,11 +1279,15 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
ripper.setObserver(this);
|
ripper.setObserver(this);
|
||||||
Thread t = new Thread(ripper);
|
Thread t = new Thread(ripper);
|
||||||
if (configShowPopup.isSelected() && (!mainFrame.isVisible() || !mainFrame.isActive())) {
|
if (configShowPopup.isSelected() && (!mainFrame.isVisible() || !mainFrame.isActive())) {
|
||||||
mainFrame.toFront();
|
try {
|
||||||
mainFrame.setAlwaysOnTop(true);
|
mainFrame.toFront();
|
||||||
trayIcon.displayMessage(mainFrame.getTitle(), "Started ripping " + ripper.getURL().toExternalForm(),
|
mainFrame.setAlwaysOnTop(true);
|
||||||
MessageType.INFO);
|
trayIcon.displayMessage(mainFrame.getTitle(), "Started ripping " + ripper.getURL().toExternalForm(),
|
||||||
mainFrame.setAlwaysOnTop(false);
|
MessageType.INFO);
|
||||||
|
mainFrame.setAlwaysOnTop(false);
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
LOGGER.error("Could not send popup, are tray icons supported?");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return t;
|
return t;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Reference in New Issue
Block a user