Commits

Vessper  committed 2101d04

HQF: Fixed module list menu options for adding/remove modules to favourites

  • Participants
  • Parent commits 5ce8134

Comments (0)

Files changed (3)

File EveHQ.HQF/Forms/frmHQF.Designer.vb

         '
         Me.ctxFittings.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.mnuFittingsFittingName, Me.ToolStripMenuItem4, Me.mnuPreviewShip2, Me.mnuFittingsShowFitting, Me.ToolStripMenuItem1, Me.mnuFittingsRenameFitting, Me.mnuFittingsCopyFitting, Me.mnuFittingsDeleteFitting, Me.ToolStripMenuItem3, Me.mnuFittingsCreateFitting, Me.mnuFittingsBCBrowser, Me.ToolStripMenuItem5, Me.mnuCompareFittings, Me.ToolStripMenuItem7, Me.mnuExportToEve, Me.mnuExportToRequisitions})
         Me.ctxFittings.Name = "ctxFittings"
-        Me.ctxFittings.Size = New System.Drawing.Size(192, 298)
+        Me.ctxFittings.Size = New System.Drawing.Size(192, 276)
         '
         'mnuFittingsFittingName
         '
         '
         'ElementStyle1
         '
-        Me.ElementStyle1.Class = ""
         Me.ElementStyle1.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.ElementStyle1.Name = "ElementStyle1"
         Me.ElementStyle1.TextColor = System.Drawing.SystemColors.ControlText
         '
         'ElementStyle4
         '
-        Me.ElementStyle4.Class = ""
         Me.ElementStyle4.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.ElementStyle4.Name = "ElementStyle4"
         Me.ElementStyle4.TextColor = System.Drawing.SystemColors.ControlText
         '
         'ElementStyle3
         '
-        Me.ElementStyle3.Class = ""
         Me.ElementStyle3.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.ElementStyle3.Name = "ElementStyle3"
         Me.ElementStyle3.TextColor = System.Drawing.SystemColors.ControlText
         '
         'ElementStyle2
         '
-        Me.ElementStyle2.Class = ""
         Me.ElementStyle2.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.ElementStyle2.Name = "ElementStyle2"
         Me.ElementStyle2.TextColor = System.Drawing.SystemColors.ControlText
         '
         '
         '
-        Me.rbmc1.Style.Class = ""
         Me.rbmc1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbmc1.StyleMouseDown.Class = ""
         Me.rbmc1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbmc1.StyleMouseOver.Class = ""
         Me.rbmc1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbmc1.TabIndex = 1
         Me.rbmc1.Visible = False
         '
         '
         '
-        Me.rbEditor.BackgroundMouseOverStyle.Class = ""
         Me.rbEditor.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbEditor.BackgroundStyle.Class = ""
         Me.rbEditor.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbEditor.ContainerControlProcessDialogKey = True
         Me.rbEditor.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.btnEditor})
         '
         '
         '
-        Me.rbEditor.TitleStyle.Class = ""
         Me.rbEditor.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbEditor.TitleStyleMouseOver.Class = ""
         Me.rbEditor.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         'btnEditor
         '
         '
         '
-        Me.rbImport.BackgroundMouseOverStyle.Class = ""
         Me.rbImport.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbImport.BackgroundStyle.Class = ""
         Me.rbImport.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbImport.ContainerControlProcessDialogKey = True
         Me.rbImport.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.ItemContainer2, Me.btnImport})
         '
         '
         '
-        Me.rbImport.TitleStyle.Class = ""
         Me.rbImport.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbImport.TitleStyleMouseOver.Class = ""
         Me.rbImport.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbImport.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle
         '
         '
         '
         '
-        Me.ItemContainer2.BackgroundStyle.Class = ""
         Me.ItemContainer2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.ItemContainer2.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical
         Me.ItemContainer2.Name = "ItemContainer2"
         '
         '
         '
-        Me.rbExport.BackgroundMouseOverStyle.Class = ""
         Me.rbExport.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbExport.BackgroundStyle.Class = ""
         Me.rbExport.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbExport.ContainerControlProcessDialogKey = True
         Me.rbExport.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.btnScreenGrab, Me.btnExportEve, Me.ItemContainer1, Me.btnExportReq})
         '
         '
         '
-        Me.rbExport.TitleStyle.Class = ""
         Me.rbExport.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbExport.TitleStyleMouseOver.Class = ""
         Me.rbExport.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbExport.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle
         '
         '
         Me.ItemContainer1.BackgroundStyle.BorderLeftColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground
         Me.ItemContainer1.BackgroundStyle.BorderLeftWidth = 1
-        Me.ItemContainer1.BackgroundStyle.Class = ""
         Me.ItemContainer1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.ItemContainer1.LayoutOrientation = DevComponents.DotNetBar.eOrientation.Vertical
         Me.ItemContainer1.Name = "ItemContainer1"
         '
         '
         '
-        Me.rbTools.BackgroundMouseOverStyle.Class = ""
         Me.rbTools.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbTools.BackgroundStyle.Class = ""
         Me.rbTools.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbTools.ContainerControlProcessDialogKey = True
         Me.rbTools.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.btnPilotManager, Me.btnImplantManager, Me.btnFleetManager})
         '
         '
         '
-        Me.rbTools.TitleStyle.Class = ""
         Me.rbTools.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbTools.TitleStyleMouseOver.Class = ""
         Me.rbTools.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbTools.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle
         '
         '
         '
         '
-        Me.rbOptions.BackgroundMouseOverStyle.Class = ""
         Me.rbOptions.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbOptions.BackgroundStyle.Class = ""
         Me.rbOptions.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbOptions.ContainerControlProcessDialogKey = True
         Me.rbOptions.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.btnOptions})
         '
         '
         '
-        Me.rbOptions.TitleStyle.Class = ""
         Me.rbOptions.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square
         '
         '
         '
-        Me.rbOptions.TitleStyleMouseOver.Class = ""
         Me.rbOptions.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square
         Me.rbOptions.VerticalItemAlignment = DevComponents.DotNetBar.eVerticalItemsAlignment.Middle
         '

File EveHQ.HQF/Forms/frmHQF.resx

         AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
         LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
         ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACw
-        CQAAAk1TRnQBSQFMAgEBBAEAAXwBAwF8AQMBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
+        CQAAAk1TRnQBSQFMAgEBBAEAAYQBAwGEAQMBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ
         AwABKAMAAQEBAAEgBgABMv8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
         /wD/AP8A/wBUAAMCAQMDAAEB/wBAAAEB/wAVAAMCAQMDBAEGAwUBBwMCAQMDAAQBAQIDBAEGAwUBBwMD
         AQQDAAEBwAADAQECAwcBCQMKAQ0DAwEEAwABARcAAQEDBAEGAwoBDgMEAQYbAAEBAw0BEgM7AWQDSgGM

File EveHQ.HQF/Forms/frmHQF.vb

         If tvwModules.SelectedNodes.Count > 0 Then
             Dim moduleID As String = tvwModules.SelectedNodes(0).Name
             Dim cModule As ShipModule = CType(ModuleLists.moduleList.Item(moduleID), ShipModule)
-            If ModuleDisplay = "Favourites" Then
+            If Settings.HQFSettings.Favourites.Contains(cModule.Name) = True Then
                 mnuAddToFavourites_List.Visible = False
                 mnuRemoveFromFavourites.Visible = True
             Else
                 mnuAddToFavourites_List.Visible = True
                 mnuRemoveFromFavourites.Visible = False
-                If Settings.HQFSettings.Favourites.Contains(cModule.Name) = True Then
-                    mnuAddToFavourites_List.Enabled = False
-                Else
-                    mnuAddToFavourites_List.Enabled = True
-                End If
             End If
             If IsNumeric(ModuleDisplay) = True Then
                 mnuSep2.Visible = False