Update MainWindow.cpp

resolved popup prompt window of Updates again and again
Merge pull request #45 from vipjeffreylee/patch-2

resolved popup prompt window of Updates again and again