Skip to content

Changing market module settings in Luna requires restart #138

@Evolter

Description

@Evolter

Forum use reported that changing settings in Luna does not take effect. It figures it does but after the restart:

Black Markets enabled:

Image

Black Markets missing:

Image

Black Markets appear after restart:

Image

From a quick look at the code, it looks like the UI element is created once and kept in the memory until restart. Not sure if doable, but if we can detect Luna settings change somehow then we could try to redraw the UI?

Or try redraw it on "load game" to avoid restarting Starsector (or on every intel open, though that could hit overall performance).

Need to investigate more as I haven't dabbled in UI much yet - follow the usages of:

public static Filter getSubmarketFilter() {

May be related to #120 where caching for the method itself was disabled to mitigate another issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech workTechnical change or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions