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

Method UpdateSymbolDownloadProgress

OpenGlassGUI/MainFrame.Core.cpp:299–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 }
298
299 void MainFrame::UpdateSymbolDownloadProgress(const SymbolDownloadProgress& progress)
300 {
301 if (m_gaugeSymbolDownload)
302 {
303 if (progress.indeterminate)
304 {
305 m_gaugeSymbolDownload->Pulse();
306 }
307 else
308 {
309 m_gaugeSymbolDownload->SetValue(std::clamp(progress.percent, 0, 100));
310 }
311 }
312
313 if (m_lblSymbolDownloadPhase)
314 {
315 if (m_lblSymbolDownloadPhase->GetLabelText() != progress.phase)
316 {
317 m_lblSymbolDownloadPhase->SetLabel(progress.phase);
318 }
319 }
320 if (m_lblSymbolDownloadDetail)
321 {
322 if (m_symbolDownloadDetailText != progress.detail)
323 {
324 m_symbolDownloadDetailText = progress.detail;
325 WrapStaticTextToParentWidth(m_lblSymbolDownloadDetail, m_symbolDownloadDetailText);
326 }
327 }
328 }
329
330 void MainFrame::UpdateSymbolDownloadResult(wxArtID iconId, const wxString& summary, const wxString& details)
331 {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected