inputmethod: Use the command as the availability metric
This commit is contained in:
parent
278da74eab
commit
05f3939cf1
1 changed files with 2 additions and 3 deletions
|
@ -586,6 +586,7 @@ void InputMethod::setInputMethodCommand(const QString &command)
|
|||
startInputMethod();
|
||||
}
|
||||
updateSni();
|
||||
Q_EMIT availableChanged();
|
||||
}
|
||||
|
||||
void InputMethod::stopInputMethod()
|
||||
|
@ -605,7 +606,6 @@ void InputMethod::stopInputMethod()
|
|||
}
|
||||
m_inputMethodProcess->deleteLater();
|
||||
m_inputMethodProcess = nullptr;
|
||||
Q_EMIT availableChanged();
|
||||
}
|
||||
|
||||
void InputMethod::startInputMethod()
|
||||
|
@ -658,7 +658,6 @@ void InputMethod::startInputMethod()
|
|||
}
|
||||
}
|
||||
});
|
||||
Q_EMIT availableChanged();
|
||||
}
|
||||
bool InputMethod::isActive() const
|
||||
{
|
||||
|
@ -701,7 +700,7 @@ bool InputMethod::isVisible() const
|
|||
|
||||
bool InputMethod::isAvailable() const
|
||||
{
|
||||
return m_inputMethodProcess;
|
||||
return !m_inputMethodCommand.isEmpty();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue