private void Update() { try { string currentPath = pluginServer.SelectedTab.Address.Path; Address[] addresses; if (pluginServer.TryGetSelection(out addresses)) { bool fEnabled = currentPath != null && currentPath.Length > 3 && !currentPath.StartsWith("::") && addresses.Length > 0; pluginServer.UpdateItem(this, fEnabled, false); } } catch { pluginServer.UpdateItem(this, false, false); } }
private void Update() { Address[] addresses; if (pluginServer.TryGetSelection(out addresses)) { pluginServer.UpdateItem(this, addresses.Length > 0, false); } }