@@ -335,7 +335,6 @@ bool CMenuContainer::s_bDragMovable;
335
335
bool CMenuContainer::s_bRightDrag;
336
336
bool CMenuContainer::s_bLockWorkArea;
337
337
bool CMenuContainer::s_bPendingSearchEnter;
338
- bool CMenuContainer::s_bMoreResults;
339
338
std::vector<CMenuContainer*> CMenuContainer::s_Menus;
340
339
volatile HWND CMenuContainer::s_FirstMenu, CMenuContainer::s_SearchMenu;
341
340
CSearchManager::SearchResults CMenuContainer::s_SearchResults;
@@ -2770,7 +2769,7 @@ bool CMenuContainer::InitSearchItems( void )
2770
2769
// total height minus the search box and the "more results"/"search internet", if present
2771
2770
maxHeight=m_Items[m_SearchIndex].itemRect .top -s_Skin.Main_search_padding .top -s_Skin.Search_padding .top ;
2772
2771
maxHeight-=itemHeight*(m_SearchItemCount-1 );
2773
- if (!s_bMoreResults || (! s_SearchResults.bSearching && !HasMoreResults () ))
2772
+ if (!s_SearchResults.bSearching && !HasMoreResults ())
2774
2773
maxHeight+=itemHeight;
2775
2774
}
2776
2775
if (bAutoComlpete)
@@ -2963,28 +2962,25 @@ bool CMenuContainer::InitSearchItems( void )
2963
2962
if (s_bWin7Style)
2964
2963
{
2965
2964
UpdateAccelerators (m_OriginalCount,(int )m_Items.size ());
2966
- if (s_bMoreResults)
2965
+ MenuItem &item=m_Items[m_SearchIndex-m_SearchItemCount+1 ];
2966
+ if (s_SearchResults.bSearching )
2967
2967
{
2968
- MenuItem &item=m_Items[m_SearchIndex-m_SearchItemCount+1 ];
2969
- if (s_SearchResults.bSearching )
2970
- {
2971
- item.id =MENU_SEARCH_EMPTY;
2972
- item.name =FindTranslation (L" Menu.Searching" ,L" Searching..." );
2973
- item.pItemInfo =g_ItemManager.GetCustomIcon (L" imageres.dll,8" ,CItemManager::ICON_SIZE_TYPE_SMALL);
2974
- }
2975
- else
2976
- {
2977
- item.id =MENU_MORE_RESULTS;
2978
- item.name =FindTranslation (L" Menu.MoreResults" ,L" See more results" );
2979
- item.pItemInfo =g_ItemManager.GetCustomIcon (L" imageres.dll,177" ,CItemManager::ICON_SIZE_TYPE_SMALL);
2980
- }
2968
+ item.id =MENU_SEARCH_EMPTY;
2969
+ item.name =FindTranslation (L" Menu.Searching" ,L" Searching..." );
2970
+ item.pItemInfo =g_ItemManager.GetCustomIcon (L" imageres.dll,8" ,CItemManager::ICON_SIZE_TYPE_SMALL);
2971
+ }
2972
+ else
2973
+ {
2974
+ item.id =MENU_MORE_RESULTS;
2975
+ item.name =FindTranslation (L" Menu.MoreResults" ,L" See more results" );
2976
+ item.pItemInfo =g_ItemManager.GetCustomIcon (L" imageres.dll,177" ,CItemManager::ICON_SIZE_TYPE_SMALL);
2981
2977
}
2982
2978
}
2983
2979
else
2984
2980
{
2985
2981
m_ScrollCount=(int )m_Items.size ();
2986
2982
bool bInternet=GetSettingBool (L" SearchInternet" );
2987
- if (s_bMoreResults && s_SearchResults.bSearching )
2983
+ if (s_SearchResults.bSearching )
2988
2984
{
2989
2985
MenuItem item (MENU_SEARCH_EMPTY);
2990
2986
item.name =FindTranslation (L" Menu.Searching" ,L" Searching..." );
@@ -2999,7 +2995,7 @@ bool CMenuContainer::InitSearchItems( void )
2999
2995
item.name =FindTranslation (L" Menu.NoMatch" ,L" No items match your search." );
3000
2996
m_Items.push_back (item);
3001
2997
}
3002
- if (s_bMoreResults && HasMoreResults ())
2998
+ if (HasMoreResults ())
3003
2999
{
3004
3000
{
3005
3001
MenuItem item (MENU_SEPARATOR);
@@ -5087,7 +5083,7 @@ void CMenuContainer::UpdateSearchResults( bool bForceShowAll )
5087
5083
g_SearchManager.BeginSearch (s_SearchResults.currentString );
5088
5084
s_SearchResults.bSearching =true ;
5089
5085
s_bPendingSearchEnter=false ;
5090
- if (s_bWin7Style && s_bMoreResults )
5086
+ if (s_bWin7Style)
5091
5087
{
5092
5088
MenuItem &item=m_Items[m_SearchIndex-m_SearchItemCount+1 ];
5093
5089
item.id =MENU_SEARCH_EMPTY;
@@ -7437,7 +7433,7 @@ static void CreateStartScreenFile( const wchar_t *fname )
7437
7433
bool CMenuContainer::HasMoreResults ( void )
7438
7434
{
7439
7435
if (s_HasMoreResults==-1 )
7440
- s_HasMoreResults=(GetSettingBool (L" SearchFiles" ) && HasSearchService ())?1 :0 ;
7436
+ s_HasMoreResults=(GetSettingBool (L" MoreResults " ) && GetSettingBool ( L" SearchFiles" ) && HasSearchService ())?1 :0 ;
7441
7437
return s_HasMoreResults!=0 ;
7442
7438
}
7443
7439
@@ -7713,7 +7709,6 @@ HWND CMenuContainer::ToggleStartMenu( int taskbarId, bool bKeyboard, bool bAllPr
7713
7709
s_bDisableHover=false ;
7714
7710
s_bDragClosed=false ;
7715
7711
s_bPendingSearchEnter=false ;
7716
- s_bMoreResults=GetSettingBool (L" MoreResults" );
7717
7712
InitTouchHelper ();
7718
7713
7719
7714
bool bRemote=GetSystemMetrics (SM_REMOTESESSION)!=0 ;
0 commit comments