| 87 | } |
| 88 | |
| 89 | void SetProgress(int64_t cur, int64_t max) override { |
| 90 | int new_progress = mid<int>(0, double(cur) / max * 300, 300); |
| 91 | if (new_progress != progress) { |
| 92 | progress = new_progress; |
| 93 | Main().Async([=, this]{ dialog->SetProgress(new_progress); }); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | void Log(std::string const& str) override { |
| 98 | Main().Async([=, this]{ dialog->pending_log += to_wx(str); }); |
nothing calls this directly
no test coverage detected