tonikelope / megabasterd

Yet another unofficial (and ugly) cross-platform MEGA downloader/uploader/streaming suite.
GNU General Public License v3.0
4.41k stars 597 forks source link

Fixed the close operation #670

Open javiermoralesdev opened 1 month ago

javiermoralesdev commented 1 month ago

There's a tiny and almost undetectable bug. When you close the application it's still running in the background without the end user ever noticing which can lead to a waster of the user's machine resources.

The fix was pretty easy to do. The only modification I did to the codebase was going to the contructor of MainPanelView and adding this line to the beginning

setDefaultCloseOperation(EXIT_ON_CLOSE)

With this code the app immediatly closes once the user closes the window avoiding any extra resource consumption