improve plugin loading/error handling

This commit is contained in:
Patrick von Reth 2015-07-15 18:12:43 +02:00
parent 49a1f21e61
commit cdc651b6e6
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ bool GrowlBackend::isReady()
{
bool running = Growl::isRunning(GROWL_TCP, settingsValue(QLatin1String("Host")).toString().toUtf8().constData());
if (!running) {
setErrorString(tr("Growl is not running."));
setErrorString(name() + tr(" is not running."));
}
return running;
}

View File

@ -147,7 +147,7 @@ bool SnarlBackend::isReady()
{
bool running = SnarlInterface::IsSnarlRunning();
if (!running) {
setErrorString(tr("Snarl is not running."));
setErrorString(name() + tr(" is not running."));
}
return running;
}

View File

@ -16,7 +16,7 @@ using namespace Snore;
bool SnoreToast::isReady()
{
if (QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS8) {
if (errorString().isEmpty() && QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS8) {
setErrorString(name() + tr(" needs at least Windows 8 to run."));
return false;
}