MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / uploadProgress

Method uploadProgress

lightscreenwindow.cpp:796–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794}
795
796void LightscreenWindow::uploadProgress(int progress)
797{
798 if (mHasTaskbarButton) {
799 mTaskbarButton->progress()->setVisible(true);
800 mTaskbarButton->progress()->setValue(progress);
801 }
802
803 if (isVisible() && progress > 0) {
804 int uploadCount = Uploader::instance()->uploading();
805
806 if (uploadCount > 1) {
807 setWindowTitle(tr("%1% of %2 uploads - Lightscreen").arg(progress).arg(uploadCount));
808 } else {
809 setWindowTitle(tr("%1% - Lightscreen").arg(progress));
810 }
811 }
812}
813
814void LightscreenWindow::windowHotkey()
815{

Callers

nothing calls this directly

Calls 2

uploadingMethod · 0.80
progressMethod · 0.45

Tested by

no test coverage detected