Merge branch 'add-tutorial-button' into Add-tutorial-button

This commit is contained in:
Loup 2023-02-07 23:20:41 +05:30 committed by GitHub
commit 958b4c6231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,9 @@
## Plugin Manager (dd-mm-yyyy) ## Plugin Manager (dd-mm-yyyy)
### 0.2.3 (31-01-2023)
- Displays a tutorial button in the plugin window, whenever there is a supported url present in the plugin data.
### 0.2.2 (18-01-2023) ### 0.2.2 (18-01-2023)
- Auto add new line breaks in long plugin descriptions. - Auto add new line breaks in long plugin descriptions.

View file

@ -961,6 +961,7 @@ class PluginWindow(popup.PopupWindow):
rotate=25, rotate=25,
scale=0.45) scale=0.45)
# Below snippet handles the tutorial button in the plugin window # Below snippet handles the tutorial button in the plugin window
tutorial_url = self.plugin.info["external_url"] tutorial_url = self.plugin.info["external_url"]
if tutorial_url: if tutorial_url:
@ -982,7 +983,9 @@ class PluginWindow(popup.PopupWindow):
label="", label="",
# color=ba.app.ui.title_color, # color=ba.app.ui.title_color,
color=(0.6, 0.53, 0.63), color=(0.6, 0.53, 0.63),
on_activate_call=tutorial_confirm_window) on_activate_call=tutorial_confirm_window)
ba.imagewidget(parent=self._root_widget, ba.imagewidget(parent=self._root_widget,
position=(open_pos_x, open_pos_y), position=(open_pos_x, open_pos_y),
size=(40, 40), size=(40, 40),