Beispiel #1
0
void BluecherryApp::sendSettingsChanged()
{
    emit settingsChanged();

    QSettings settings;
    /* If always is disabled while another condition would keep the screensaver off right now,
     * this will incorrectly turn off inhibition. Detecting this case is complicated. */
    setScreensaverInhibited(settings.value(QLatin1String("ui/disableScreensaver/always"), true).toBool());

    if (settings.value(QLatin1String("ui/disableUpdateNotifications"), false).toBool())
        stopUpdateChecker();
}
Beispiel #2
0
void BluecherryApp::aboutToQuit()
{
    setScreensaverInhibited(false);
    delete m_thumbnailManager;
}
void BluecherryApp::aboutToQuit()
{
    setScreensaverInhibited(false);
}