Update MainWindow.cpp

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

resolved popup prompt window of Updates again and again