[PR #4027] [MERGED] [client] close window when process needs to exit #22259

Closed
opened 2026-08-05 06:05:44 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/4027
Author: @mlsmaycon
Created: 6/22/2025
Status: Merged
Merged: 6/22/2025
Merged by: @mlsmaycon

Base: mainHead: fix/close-ui-windows


📝 Commits (1)

  • 5915a69 close windows when process needs to exit

📊 Changes

2 files changed (+6 additions, -6 deletions)

View changed files

📝 client/ui/client_ui.go (+1 -1)
📝 client/ui/event_handler.go (+5 -5)

📄 Description

Describe your changes

This PR fixes a bug by ensuring that the advanced settings and re-authentication windows are closed appropriately when the main GUI process exits.

  • Updated runSelfCommand calls throughout the UI to pass a context parameter.
  • Modified runSelfCommand’s signature and its internal command invocation to use exec.CommandContext for proper cancellation handling.

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/4027 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 6/22/2025 **Status:** ✅ Merged **Merged:** 6/22/2025 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/close-ui-windows` --- ### 📝 Commits (1) - [`5915a69`](https://github.com/netbirdio/netbird/commit/5915a690e1e48e582ab48d5b9e20aba9a64b7c62) close windows when process needs to exit ### 📊 Changes **2 files changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/ui/client_ui.go` (+1 -1) 📝 `client/ui/event_handler.go` (+5 -5) </details> ### 📄 Description ## Describe your changes This PR fixes a bug by ensuring that the advanced settings and re-authentication windows are closed appropriately when the main GUI process exits. - Updated runSelfCommand calls throughout the UI to pass a context parameter. - Modified runSelfCommand’s signature and its internal command invocation to use exec.CommandContext for proper cancellation handling. ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 06:05:44 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#22259