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

Method showUploaderMessage

lightscreenwindow.cpp:679–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679void LightscreenWindow::showUploaderMessage(const QString &fileName, const QString &url)
680{
681 if (mTrayIcon && settings()->value("options/message").toBool() && !url.isEmpty()) {
682 QString screenshot = QFileInfo(fileName).fileName();
683
684 if (screenshot.startsWith(".lstemp.")) {
685 screenshot = tr("Screenshot");
686 }
687
688 mLastMessage = 2;
689 mTrayIcon->showMessage(tr("%1 uploaded").arg(screenshot), tr("Click here to go to %1").arg(url));
690 }
691
692 updateStatus();
693}
694
695void LightscreenWindow::toggleVisibility()
696{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected