Fixes #2826: only run set_code() on submit if the config template editor is already in diff mode
(cherry picked from commit ceabd2b37d1924a45ee20de100d0e5cb8f39845d)
Fixes #2826: only run set_code() on submit if the config template editor is already in diff mode
(cherry picked from commit ceabd2b37d1924a45ee20de100d0e5cb8f39845d)