Fix killing Syncthing from launcher settings
This commit is contained in:
parent
7f307822df
commit
59d71aa6a5
|
@ -87,11 +87,11 @@ void SyncthingLauncher::kill()
|
||||||
{
|
{
|
||||||
if (m_process.isRunning()) {
|
if (m_process.isRunning()) {
|
||||||
m_manuallyStopped = true;
|
m_manuallyStopped = true;
|
||||||
m_process.stopSyncthing();
|
m_process.killSyncthing();
|
||||||
} else if (m_future.isRunning()) {
|
} else if (m_future.isRunning()) {
|
||||||
m_manuallyStopped = true;
|
m_manuallyStopped = true;
|
||||||
#ifdef SYNCTHINGWIDGETS_USE_LIBSYNCTHING
|
#ifdef SYNCTHINGWIDGETS_USE_LIBSYNCTHING
|
||||||
// FIXME: any change to try harder?
|
// FIXME: any chance to try harder?
|
||||||
LibSyncthing::stopSyncthing();
|
LibSyncthing::stopSyncthing();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue