Fixing error, when mainwindow toggle with global shortcut, and it doesn't get focus