diff --git a/waifu2x-caffe-gui/Source.cpp b/waifu2x-caffe-gui/Source.cpp index 11160c5..3f5f92c 100644 --- a/waifu2x-caffe-gui/Source.cpp +++ b/waifu2x-caffe-gui/Source.cpp @@ -575,6 +575,11 @@ private: { const auto InitEndTime = std::chrono::system_clock::now(); + const int maxFile = file_paths.size(); + int num = 0; + + ProgessFunc(maxFile, 0); + for (const auto &p : file_paths) { ret = w.waifu2x(p.first, p.second, [this]() @@ -582,6 +587,9 @@ private: return cancelFlag; }); + num++; + ProgessFunc(maxFile, num); + if (ret != Waifu2x::eWaifu2xError_OK) { SendMessage(dh, WM_ON_WAIFU2X_ERROR, (WPARAM)&ret, (LPARAM)&p);