MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / SetProgress

Method SetProgress

src/dialog_progress.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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); });

Callers

nothing calls this directly

Calls 2

AsyncMethod · 0.80
SetProgressMethod · 0.45

Tested by

no test coverage detected