From 13e9485e3127e032b9cee54d56ad43731e1f926d Mon Sep 17 00:00:00 2001 From: Patrick Gaskin Date: Fri, 3 Jul 2020 13:42:13 -0400 Subject: [PATCH] Fixed incorrect setting name in setting change toast (fixes #61) This is a regression in v0.2.0 from cb2caff551335fd3dd194e7b98cad019418c6b08. --- src/action_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action_cc.cc b/src/action_cc.cc index b856093..b9df75f 100644 --- a/src/action_cc.cc +++ b/src/action_cc.cc @@ -309,7 +309,7 @@ NM_ACTION_(nickel_setting) { Settings_SettingsD(settings); NM_RETURN_OK(strcmp(arg2, "invert") // invert is obvious - ? nm_action_result_toast("%s %s", v ? "disabled" : "enabled", arg1) + ? nm_action_result_toast("%s %s", v ? "disabled" : "enabled", arg2) : nm_action_result_silent()); #undef NM_ERR_RET }