From 783793ba69e77bdd3bcb855f3520a459e0f6a521 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sun, 21 Oct 2012 02:08:22 +0000 Subject: [PATCH] [BUG_FIXED] Remove GUI limitation issue for auto-updating feature. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@973 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 5 +++-- PowerEditor/src/WinControls/Preference/preferenceDlg.cpp | 8 -------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index c31f641f2..c00230e42 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -5030,7 +5030,7 @@ struct Quote{ const char *_quote; }; -const int nbQuote = 93; +const int nbQuote = 94; Quote quotes[nbQuote] = { {"Notepad++", "Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.\nBy optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment."}, {"Martin Golding", "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."}, @@ -5119,7 +5119,8 @@ Quote quotes[nbQuote] = { {"Anonymous #57", "No, no, no, I'm not insulting you.\nI'm describing you."}, {"Anonymous #58", "I bought a dog once. Named him \"Stay\".\n\"Come here, Stay.\"\nHe's insane now."}, {"Anonymous #59", "Steve Jobs\n1955-2011\nDied from PC (Pancreatic Cancer)."}, -{"Anonymous #60", "Apple fan boy: I'll buy a second iPhone 5 and buy a lot of iOS applications so that Apple will be able to buy Samsung (this shitty company) to shut it down and all the Apple haters will be forced to have an iPhone. Muhahaha..."}, +{"Anonymous #60", "Yesterday I named my Wifi network \"hack me if you can\"\nToday when I woke up it was changed to \"challenge accepted\"."}, +{"Apple fan boy", "I'll buy a second iPhone 5 and buy a lot of iOS applications so that Apple will be able to buy Samsung (this shitty company) to shut it down and all the Apple haters will be forced to have an iPhone. Muhahaha..."}, {"Hustle Man", "Politicians are like sperm.\nOne in a million turn out to be an actual human being."}, {"Confucius", "It's good to meet girl in park.\nBut better to park meat in girl."}, {"Mark Twain", "Censorship is telling a man he can't have a steak just because a baby can't chew it."}, diff --git a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp index 59f68edfd..871a7ed2c 100644 --- a/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp +++ b/PowerEditor/src/WinControls/Preference/preferenceDlg.cpp @@ -716,14 +716,6 @@ BOOL CALLBACK SettingsDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM) ::SendDlgItemMessage(_hSelf, IDC_CHECK_MIN2SYSTRAY, BM_SETCHECK, nppGUI._isMinimizedToTray, 0); ::SendDlgItemMessage(_hSelf, IDC_CHECK_REMEMBERSESSION, BM_SETCHECK, nppGUI._rememberLastSession, 0); ::SendDlgItemMessage(_hSelf, IDC_CHECK_AUTOUPDATE, BM_SETCHECK, nppGUI._autoUpdateOpt._doAutoUpdate, 0); - - bool isVistaAndAfter = (pNppParam->getWinVersion() >= WV_VISTA); - if (isVistaAndAfter) - { - ::SendDlgItemMessage(_hSelf, IDC_CHECK_AUTOUPDATE, BM_SETCHECK, FALSE, 0); - ::EnableWindow(::GetDlgItem(_hSelf, IDC_CHECK_AUTOUPDATE), FALSE); - } - ::ShowWindow(::GetDlgItem(_hSelf, IDC_CHECK_AUTOUPDATE), nppGUI._doesExistUpdater?SW_SHOW:SW_HIDE); BOOL linkEnable = FALSE;