File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -238,17 +238,13 @@ HRESULT WinMergeContextMenu::InvokeCommand(DWORD verb)
238
238
239
239
if (verb == CMD_COMPARE)
240
240
{
241
+ bCompare = TRUE ;
241
242
switch (m_dwMenuState)
242
243
{
243
- case MENU_SIMPLE:
244
- bCompare = TRUE ;
245
- break ;
246
-
247
244
case MENU_ONESEL_PREV:
248
245
m_strPaths.resize (2 );
249
246
m_strPaths[1 ] = m_strPaths[0 ];
250
247
m_strPaths[0 ] = m_strPreviousPaths[0 ];
251
- bCompare = TRUE ;
252
248
253
249
// Forget previous selection
254
250
if (reg.Open (HKEY_CURRENT_USER, f_RegDir) == ERROR_SUCCESS)
@@ -263,7 +259,6 @@ HRESULT WinMergeContextMenu::InvokeCommand(DWORD verb)
263
259
m_strPaths[2 ] = m_strPaths[0 ];
264
260
m_strPaths[0 ] = m_strPreviousPaths[0 ];
265
261
m_strPaths[1 ] = m_strPreviousPaths[1 ];
266
- bCompare = TRUE ;
267
262
268
263
// Forget previous selection
269
264
if (reg.Open (HKEY_CURRENT_USER, f_RegDir) == ERROR_SUCCESS)
@@ -276,7 +271,6 @@ HRESULT WinMergeContextMenu::InvokeCommand(DWORD verb)
276
271
case MENU_TWOSEL:
277
272
case MENU_THREESEL:
278
273
// "Compare" - compare m_strPaths
279
- bCompare = TRUE ;
280
274
m_strPreviousPaths[0 ].erase ();
281
275
m_strPreviousPaths[1 ].erase ();
282
276
break ;
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ class __declspec(uuid("90340779-F37E-468E-9728-A2593498ED32")) WinMergeFileDirEx
300
300
, WinMergeExplorerCommandBase (&m_contextMenu)
301
301
{
302
302
}
303
- const wchar_t * Title () override { return L" WinMerge" ; }
303
+ const wchar_t * Title () override { return L" & WinMerge" ; }
304
304
const int IconId (_In_opt_ IShellItemArray* selection) override
305
305
{
306
306
auto paths = GetPaths (selection);
@@ -311,10 +311,14 @@ class __declspec(uuid("90340779-F37E-468E-9728-A2593498ED32")) WinMergeFileDirEx
311
311
const int Verb () override { return WinMergeContextMenu::CMD_COMPARE; }
312
312
const EXPCMDFLAGS Flags () override
313
313
{
314
+ // Due to stability issues, the advanced menu is currently disabled.
315
+ return ECF_DEFAULT;
316
+ /*
314
317
if ((m_contextMenu.GetContextMenuEnabled() & (WinMergeContextMenu::EXT_ENABLED | WinMergeContextMenu::EXT_ADVANCED)) == (WinMergeContextMenu::EXT_ENABLED | WinMergeContextMenu::EXT_ADVANCED))
315
318
return ECF_HASSUBCOMMANDS;
316
319
else
317
320
return ECF_DEFAULT;
321
+ */
318
322
}
319
323
const EXPCMDSTATE State (_In_opt_ IShellItemArray* selection) override
320
324
{
You can’t perform that action at this time.
0 commit comments