[PR #1420] [CLOSED] Windows/Linux: одно окно настроек вместо нескольких #130

Closed
opened 2026-10-09 00:00:58 +03:00 by mirror-bot · 0 comments

📋 Pull Request Information

Original PR: https://github.com/Flowseal/tg-ws-proxy/pull/1420
Author: @Fallout-rtg
Created: 10/8/2026
Status: ❌ Closed

Base: main ← Head: fix/settings-singleton


📝 Commits (1)

  • 66542cd Fix duplicate settings windows on Windows and Linux

📊 Changes

2 files changed (+90 additions, -0 deletions)

View changed files

📝 linux.py (+45 -0)
📝 windows.py (+45 -0)

📄 Description

В продолжение #1418.

На маке повторное открытие настроек просто фокусит уже открытое окно (там это давно так), а на винде и линуксе каждый клик открывал ещё одно новое. Перенёс такое же поведение в windows.py и linux.py: если окно уже открыто — поднимаем и фокусим его, новое не создаём.


🔄 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/Flowseal/tg-ws-proxy/pull/1420 **Author:** [@Fallout-rtg](https://github.com/Fallout-rtg) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/settings-singleton` --- ### 📝 Commits (1) - [`66542cd`](https://github.com/Flowseal/tg-ws-proxy/commit/66542cd6e1bca58eff064aaebd6aa3813634d129) Fix duplicate settings windows on Windows and Linux ### 📊 Changes **2 files changed** (+90 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `linux.py` (+45 -0) 📝 `windows.py` (+45 -0) </details> ### 📄 Description В продолжение #1418. На маке повторное открытие настроек просто фокусит уже открытое окно (там это давно так), а на винде и линуксе каждый клик открывал ещё одно новое. Перенёс такое же поведение в `windows.py` и `linux.py`: если окно уже открыто — поднимаем и фокусим его, новое не создаём. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror-bot added the pull-request label 2026-10-09 00:00:58 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Utilities/tg-ws-proxy#130