improve plugin loading/error handling
This commit is contained in:
parent
49a1f21e61
commit
cdc651b6e6
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue