Qt: Actually load defaults again

This commit is contained in:
Vicki Pfau 2024-04-03 02:55:59 -07:00
parent 5ff777d301
commit fb7ad7dbfb
1 changed files with 5 additions and 4 deletions

View File

@ -172,15 +172,16 @@ void InputController::setConfiguration(ConfigController* config) {
}
bool InputController::loadConfiguration(uint32_t type) {
if (!mInputMapLoad(&m_inputMap, type, m_config->input())) {
return false;
}
bool loaded = mInputMapLoad(&m_inputMap, type, m_config->input());
auto driver = m_inputDrivers.value(type);
if (!driver) {
return false;
}
if (!loaded) {
driver->bindDefaults(this);
}
driver->loadConfiguration(m_config);
return true;
return loaded;
}
bool InputController::loadProfile(uint32_t type, const QString& profile) {