Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Companion hardware internal module continued #1342

Merged
merged 6 commits into from
Jan 10, 2022
Merged

Conversation

elecpower
Copy link
Collaborator

@elecpower elecpower commented Jan 4, 2022

Summary of changes:

  • allow user the opportunity cancel hardware internal module update
  • after hardware change, check and update all models internal module protocol to OFF if incompatible
  • on model edit load, check and update model internal module protocol to OFF if incompatible
  • fixed: do not allow radio settings to be edited whilst any models are in edit mode (requires internationalization testing)
  • fixed: prevent multiple edit instances of same model (requires internationalization testing)
  • fixed: destroy model edit dialog on close and reduce memory bloat
  • fixed: change Edit Radio Settings to modal dialog

@elecpower elecpower added the companion Related to the companion software label Jan 4, 2022
@pfeerick
Copy link
Member

pfeerick commented Jan 6, 2022

This is absolutely perfect! :)
image

  • fixed: prevent multiple edit instances of same model (requires internationalization testing)

Since this seems to bring the open instance to focus, what needs testing? or am I confusing "internationalization testing" as I was thinking it was translations

Ready to merge? Seems to be working as expected for me.

@elecpower
Copy link
Collaborator Author

Internationalization is for translations - the code uses regexps to look for dialogs with matching window title. To truly test need someone running non-english language to test. If regexp doesn't work I will have to take a different tact.

@pfeerick
Copy link
Member

pfeerick commented Jan 6, 2022

oakey dokey... I'll switch languages and report back tomorrow ;)

@elecpower
Copy link
Collaborator Author

Internationalization is for translations - the code uses regexps to look for dialogs with matching window title. To truly test need someone running non-english language to test. If regexp doesn't work I will have to take a different tact.

Although this may not be a true test, switching the menu language to French is a test fail. Using menu language System Default on a French OS may work but I suspect the character sets screw with regexp even though the search string should be translated. So looks like another method required.

@elecpower
Copy link
Collaborator Author

Reworked to avoid translation issues

@pfeerick
Copy link
Member

pfeerick commented Jan 7, 2022

Looks good so far - with system languages French, German and Chinese in Windows 10, it worked perfectly. And also when using the menu to change the language back.

@pfeerick pfeerick added this to the 2.6 milestone Jan 8, 2022
@pfeerick
Copy link
Member

pfeerick commented Jan 8, 2022

Any particular reason "Off" is not an option in Companion for Radio => Hardware settings (when it is on radio)? Also isn't a option for profile def internal module setting.

@elecpower
Copy link
Collaborator Author

Any particular reason "Off" is not an option in Companion for Radio => Hardware settings (when it is on radio)? Also isn't a option for profile def internal module setting.

Either @raphaelcoeffic or I erred. Anyway I'll sort out the shared list.

@elecpower elecpower linked an issue Jan 8, 2022 that may be closed by this pull request
@pfeerick pfeerick merged commit fcf8fbd into main Jan 10, 2022
@pfeerick pfeerick deleted the cpn-int-module-part2 branch January 10, 2022 01:13
pfeerick pushed a commit that referenced this pull request Jan 10, 2022
* Add ability to undo hardware internal module change

* Add internal module protocol check on model edit

* Event driven check and update of all models

* Fix model edit dialog searches

* Add OFF to list of internal modules

* Fix internal module protocol list issue #1382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
companion Related to the companion software
Projects
None yet
Development

Successfully merging this pull request may close these issues.

X9D+ models incorrect internal module protocol choices
2 participants