QuinterApp / Quinter

The accessible Quinter Twitter client
11 stars 9 forks source link

implements issue 13 (automatically open a URL in a tweet if there's only one URL) #14

Closed mehgcap closed 3 years ago

mehgcap commented 3 years ago

This PR implements the feature request in issue 13. If a tweet has a single URL and the user choose the command to open URLs, that single URL is opened immediately instead of a dialog appearing. A setting exists to let the user disable this behavior. It is disabled by default, and the default value used if this setting cannot be found is False.

Please note that this PR also partially switches chooser.ChooseGui to use class-level constants instead of strings when checking for the type to determine how to handle the OK button. This was done so that other files could reference these types by using ChooseGui.TYPE_* instead of matching hard-coded strings. This change is not directly related to issue 13.