mainwindow: add missing checks against ENABLE_DECODE