mainwindow: Remove unused variable setting logic
render: Allow the render progress dialog to close the desktop notification

This got broken in 38861f742af4ce115c9265f3e7c85d8ea0f17111
configure: Rename constant name to be uppercase