mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	!SkinCustomMenu allow for separators
This commit is contained in:
		@@ -499,10 +499,17 @@ void ContextMenu::AppendSkinCustomMenu(
 | 
			
		||||
		for (size_t i = 0; i < titleSize; ++i)
 | 
			
		||||
		{
 | 
			
		||||
			if (isTitleSeparator(cTitles[i]))
 | 
			
		||||
			{
 | 
			
		||||
				if (standaloneMenu)
 | 
			
		||||
				{
 | 
			
		||||
					AppendMenu(menu, MF_BYPOSITION | MF_SEPARATOR, 0, nullptr);
 | 
			
		||||
				}
 | 
			
		||||
				else
 | 
			
		||||
				{
 | 
			
		||||
					// Separators not allowed in main top-level menu
 | 
			
		||||
					--position;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			else
 | 
			
		||||
			{
 | 
			
		||||
				const UINT_PTR id = (index << 16) | (IDM_SKIN_CUSTOMCONTEXTMENU_FIRST + i);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user