numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

Confirm close if currently debugging #101

Closed numeredev closed 5 months ago

numeredev commented 1 year ago

DESCRIPTION

What does your feature request improve on? Please describe. Sometimes I want to close the application although the debugger has the active control. This is surprising because it looks like an app hang (canceling the debugger process resolves that).

Describe the solution you'd like Show a message popup in this situation, ask the user for confirmation and then stop the debugger first before closing the application.

Additional context Add any other context or screenshots about the feature request here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

Can be inserted into the void NumeReWindow::OnClose(wxCloseEvent &event) event handler before the event handler tries to close all files. Clicking on the "Cancel" button in the dialog shall call Veto() on the passed event. To determine, whether the debugger has the control, call bool DebugViewer::hasControl() and void DebugViewer::OnDebugCancel() to cancel the running calculation.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST