Revision 7e26c075 trunk/Pithos.ShellExtensions/Menus/FileContextMenu.cs

b/trunk/Pithos.ShellExtensions/Menus/FileContextMenu.cs
16 16
    [Guid("B1F1405D-94A1-4692-B72F-FC8CAF8B8700"), ComVisible(true)]
17 17
    public class FileContextMenu : IShellExtInit, IContextMenu
18 18
    {
19
        private const string MenuHandlername = "CSShellExtContextMenuHandler.FileContextMenuExt";
19
        private static readonly log4net.ILog Log = log4net.LogManager.GetLogger("Pithos.FileContextMenu");
20

  
21
        private const string MenuHandlername = "Pithos.FileContextMenu";
20 22

  
21 23

  
22 24
        private readonly Dictionary<string, MenuItem> _items;
......
116 118

  
117 119
            System.Windows.Forms.MessageBox.Show(
118 120
                message,
119
                "CSShellExtContextMenuHandler");
121
                "Pithos Shell Extensions");
120 122
            NativeMethods.SHChangeNotify(HChangeNotifyEventID.SHCNE_ASSOCCHANGED, HChangeNotifyFlags.SHCNF_IDLIST,
121 123
                                             IntPtr.Zero, IntPtr.Zero);
122 124
        }
......
124 126
        void OnGotoPithos(IntPtr hWnd)
125 127
        {
126 128
            var settings = Context.Settings;
127
            var activeAccount = settings.Accounts.FirstOrDefault(acc => acc.IsActive);
129
            var activeAccount = settings.Accounts.FirstOrDefault(acc =>  Context.CurrentFile.StartsWith(acc.RootPath,StringComparison.InvariantCultureIgnoreCase));
128 130
            var address = String.Format("{0}/ui/?token={1}&user={2}",
129 131
                                        settings.PithosSite,
130 132
                                        activeAccount.ApiKey,

Also available in: Unified diff