Skip to content

Program displays hidden tabs. #3

@celnahal

Description

@celnahal

The tabs in json at the bottom of the call to get-stash-items has a member called "hidden" see below. For whatever reason I have 11 tabs (I really only have access in game to 10). Right now the program will just display this extra "1" tab. It wont crash, but is not quite right.

It was an easy fix on my end.

In Models.cs under the "Tab" class I added

[JsonProperty(PropertyName = "hidden")]
public bool hidden { get; set; }

In PoeConnector.cs in the FetchTabs method I changed

List tabs = stash.Tabs;
to
List tabs = stash.Tabs.Where(t => !t.hidden).ToList();

{
"n": "1",
"i": 1,
"hidden": true,
"selected": false,
"colour": {
"r": 124,
"g": 84,
"b": 54
},
.
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions