MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / OnClose

Method OnClose

OpenGlassGUI/MainFrame.Core.cpp:1828–1854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826 }
1827
1828 void MainFrame::OnClose(wxCloseEvent& event)
1829 {
1830 if (m_initCanceled || !m_config)
1831 {
1832 event.Skip();
1833 return;
1834 }
1835 if (m_symbolDownloadRunning)
1836 {
1837 m_closeWhenSymbolDownloadStops = true;
1838 m_symbolDownloadThread.request_stop();
1839 if (m_btnCancelSymbolDownload)
1840 {
1841 m_btnCancelSymbolDownload->Enable(false);
1842 }
1843 UpdateSymbolDownloadProgress(SymbolDownloadProgress{
1844 m_gaugeSymbolDownload ? m_gaugeSymbolDownload->GetValue() : 0,
1845 true,
1846 L"Cancelling symbol download before closing...",
1847 L"The window will close after the current network request finishes or times out."
1848 });
1849 event.Veto();
1850 return;
1851 }
1852 RevertSettings();
1853 event.Skip();
1854 }
1855}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected