mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Fix for error caused when disable button was missing
This commit is contained in:
parent
8d1a55f76d
commit
6e3dbf08ae
3 changed files with 12 additions and 5 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
## Plugin Manager (dd-mm-yyyy)
|
## Plugin Manager (dd-mm-yyyy)
|
||||||
|
|
||||||
|
### 1.0.16 (22-04-2024)
|
||||||
|
|
||||||
|
- Fix for error caused when disable button was missing
|
||||||
|
|
||||||
### 1.0.15 (22-04-2024)
|
### 1.0.15 (22-04-2024)
|
||||||
|
|
||||||
- Plugins can now be viewed in A-Z and Z-A order.
|
- Plugins can now be viewed in A-Z and Z-A order.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"1.0.16": null,
|
||||||
"1.0.15": {
|
"1.0.15": {
|
||||||
"api_version": 8,
|
"api_version": 8,
|
||||||
"commit_sha": "fd170eb",
|
"commit_sha": "fd170eb",
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ from datetime import datetime
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
PLUGIN_MANAGER_VERSION = "1.0.15"
|
PLUGIN_MANAGER_VERSION = "1.0.16"
|
||||||
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
|
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
|
||||||
# Current tag can be changed to "staging" or any other branch in
|
# Current tag can be changed to "staging" or any other branch in
|
||||||
# plugin manager repo for testing purpose.
|
# plugin manager repo for testing purpose.
|
||||||
|
|
@ -1095,7 +1095,7 @@ class PluginWindow(popup.PopupWindow):
|
||||||
button1_action = self.install
|
button1_action = self.install
|
||||||
|
|
||||||
if to_draw_button1:
|
if to_draw_button1:
|
||||||
button1 = bui.buttonwidget(parent=self._root_widget,
|
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
||||||
position=(
|
position=(
|
||||||
width * (
|
width * (
|
||||||
0.1 if self.plugin.is_installed and has_update else
|
0.1 if self.plugin.is_installed and has_update else
|
||||||
|
|
@ -1110,7 +1110,7 @@ class PluginWindow(popup.PopupWindow):
|
||||||
label=button1_label)
|
label=button1_label)
|
||||||
|
|
||||||
if self.plugin.is_installed:
|
if self.plugin.is_installed:
|
||||||
bui.buttonwidget(parent=self._root_widget,
|
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
||||||
position=(width * (0.4 if has_update else 0.55), pos),
|
position=(width * (0.4 if has_update else 0.55), pos),
|
||||||
size=button_size,
|
size=button_size,
|
||||||
on_activate_call=button2_action,
|
on_activate_call=button2_action,
|
||||||
|
|
@ -1121,7 +1121,7 @@ class PluginWindow(popup.PopupWindow):
|
||||||
label=button2_label)
|
label=button2_label)
|
||||||
|
|
||||||
if has_update:
|
if has_update:
|
||||||
button1 = bui.buttonwidget(parent=self._root_widget,
|
selected_btn = bui.buttonwidget(parent=self._root_widget,
|
||||||
position=(width * 0.7, pos),
|
position=(width * 0.7, pos),
|
||||||
size=button_size,
|
size=button_size,
|
||||||
on_activate_call=button3_action,
|
on_activate_call=button3_action,
|
||||||
|
|
@ -1131,9 +1131,11 @@ class PluginWindow(popup.PopupWindow):
|
||||||
button_type='square',
|
button_type='square',
|
||||||
text_scale=1,
|
text_scale=1,
|
||||||
label=button3_label)
|
label=button3_label)
|
||||||
|
|
||||||
|
|
||||||
bui.containerwidget(edit=self._root_widget,
|
bui.containerwidget(edit=self._root_widget,
|
||||||
on_cancel_call=self._cancel,
|
on_cancel_call=self._cancel,
|
||||||
selected_child=button1)
|
selected_child=selected_btn)
|
||||||
|
|
||||||
open_pos_x = (390 if _uiscale is babase.UIScale.SMALL else
|
open_pos_x = (390 if _uiscale is babase.UIScale.SMALL else
|
||||||
450 if _uiscale is babase.UIScale.MEDIUM else 440)
|
450 if _uiscale is babase.UIScale.MEDIUM else 440)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue