UI/Optim: text comment avoid opening several windows
Description of change
If a writing window already exists, its closed and a new one is created Closes #224 (closed)
How to test it
- Open a new comment
- Focus on the main window
- Click on the button again
Checklist
Please check if your MR fulfills the following requirements:
-
Unit tests have been added, if needed -
Documentation have been updated, if needed -
Build was run locally and any changes were pushed -
Lint has passed locally without error -
Package.py have been updated, if needed -
CHANGELOG.md have been updated, if needed -
Version numer has been tagged, if needed
FYI: @awesome_dev_too