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

Method applySettings

lightscreenwindow.cpp:824–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void LightscreenWindow::applySettings()
825{
826 bool tray = settings()->value("options/tray", true).toBool();
827
828 if (tray && !mTrayIcon) {
829 createTrayIcon();
830 mTrayIcon->setVisible(true);
831 } else if (!tray && mTrayIcon) {
832 mTrayIcon->setVisible(false);
833 }
834
835 connectHotkeys();
836
837 mDoCache = false;
838
839 if (settings()->value("lastScreenshot").isValid() && mLastScreenshot.isEmpty()) {
840 mLastScreenshot = settings()->value("lastScreenshot").toString();
841 }
842
843 os::setStartup(settings()->value("options/startup").toBool(), settings()->value("options/startupHide").toBool());
844}
845
846void LightscreenWindow::connectHotkeys()
847{

Callers

nothing calls this directly

Calls 1

isValidMethod · 0.80

Tested by

no test coverage detected