• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revision29337 (tree)
Time2022-01-15 02:10:21
Authorstefankueng

Log Message

only add to the win11 menu on the tree view if we have the items data. Currently this data is not provided, but maybe one day...

Change Summary

Incremental Difference

--- trunk/src/TortoiseShell/ContextMenu.cpp (revision 29336)
+++ trunk/src/TortoiseShell/ContextMenu.cpp (revision 29337)
@@ -1,6 +1,6 @@
11 // TortoiseSVN - a Windows shell extension for easy version control
22
3-// Copyright (C) 2003-2018, 2021 - TortoiseSVN
3+// Copyright (C) 2003-2018, 2021-2022 - TortoiseSVN
44
55 // This program is free software; you can redistribute it and/or
66 // modify it under the terms of the GNU General Public License
@@ -2655,6 +2655,17 @@
26552655 *pCmdState = ECS_HIDDEN;
26562656 return S_OK;
26572657 }
2658+ else
2659+ {
2660+ // tree view
2661+ if (psiItemArray == nullptr)
2662+ {
2663+ // just in case Win11 one day provides us with the item that's right-clicked on...
2664+ CTraceToOutputDebugString::Instance()(__FUNCTION__ ": Shell :: GetState - hidden\n");
2665+ *pCmdState = ECS_HIDDEN;
2666+ return S_OK;
2667+ }
2668+ }
26582669 }
26592670 }
26602671
Show on old repository browser