From d81f13fee3da7c0fd160bdfcf66a4e50e563c01d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 4 Mar 2022 15:24:01 +0000 Subject: [PATCH] graceful shutdown on disconnect from router --- TODO.md | 1 - gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index ff60e6f3..2138434b 100644 --- a/TODO.md +++ b/TODO.md @@ -26,7 +26,6 @@ |Mark collections as inconsistent if file missing/unshared | 70? | GUI | Low| |Magic tree expansion + expand fully in collection view | 70 | GUI | Low | |Text on collections wizard is squished in GTK | N/A | GUI | Medium | -|Proper shutdown when disconnected from router | N/A | Core, GUI | High | |Make sure file exists on server before sharing | N/A | Plugin | Low | |Create shortcuts optional in windows installer | N/A | Installers | Medium | |Bloom filters| N/A | Network, Core | Optional | diff --git a/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy b/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy index ec49f4a7..c51d0f0d 100644 --- a/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy +++ b/gui/griffon-app/models/com/muwire/gui/MainFrameModel.groovy @@ -794,7 +794,7 @@ class MainFrameModel { runInsideUIAsync { JOptionPane.showMessageDialog(null, "MuWire lost connection to the I2P router and will now exit.", "Connection to I2P router lost", JOptionPane.WARNING_MESSAGE) - System.exit(0) + view.closeApplication() } }