RobLoach / RobLoach/nuklear_console

Switch parent during `nk_console_free()`

Open
#86 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
22
Forks
4
Avg merge
4m
Merged PRs (30d)
2

Description

When we're calling nk_console_free(), make it so that if the current console is the active parent, we switch the active parent to the console's parent. Don't want the active parent to become destroyed when in use.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the nk_console_free() entry point and inspect how the current console and active parent are tracked. Verify the behavior when freeing the active parent, then ensure the console's parent becomes active and the destroyed console is no longer selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.