Merge pull request #868 from danieldg/fix-backward-forward

Fix "on-click-backward" when "on-click-forward" is not present
This commit is contained in:
Alex 2020-09-26 22:29:03 +02:00 committed by GitHub
commit b9f83dc77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,9 @@ bool AModule::handleToggle(GdkEventButton* const& e) {
format = config_["on-click-middle"].asString(); format = config_["on-click-middle"].asString();
} else if (config_["on-click-right"].isString() && e->button == 3) { } else if (config_["on-click-right"].isString() && e->button == 3) {
format = config_["on-click-right"].asString(); format = config_["on-click-right"].asString();
} else if (config_["on-click-forward"].isString() && e->button == 8) { } else if (config_["on-click-backward"].isString() && e->button == 8) {
format = config_["on-click-backward"].asString(); format = config_["on-click-backward"].asString();
} else if (config_["on-click-backward"].isString() && e->button == 9) { } else if (config_["on-click-forward"].isString() && e->button == 9) {
format = config_["on-click-forward"].asString(); format = config_["on-click-forward"].asString();
} }
if (!format.empty()) { if (!format.empty()) {