mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX: record dialog stack and EndModal on system session end
Change-Id: Ie0a7de7cf467f5b9e88881d3894dbb7a0790d500
This commit is contained in:
parent
0f8ad6d5e6
commit
56a61bfcf5
3 changed files with 17 additions and 0 deletions
|
@ -1835,6 +1835,11 @@ bool GUI_App::on_init_inner()
|
|||
//BBS set crash log folder
|
||||
CBaseException::set_log_folder(data_dir());
|
||||
#endif
|
||||
|
||||
wxGetApp().Bind(wxEVT_QUERY_END_SESSION, [](auto & e) {
|
||||
for (auto d : dialogStack)
|
||||
d->EndModal(1);
|
||||
});
|
||||
|
||||
std::map<std::string, std::string> extra_headers = get_extra_header();
|
||||
Slic3r::Http::set_extra_headers(extra_headers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue