Skip to content

Commit

Permalink
Merge pull request #258 from vishal332008/main
Browse files Browse the repository at this point in the history
Update - 1.0.11
  • Loading branch information
vishal332008 authored Apr 20, 2024
2 parents 45e7b73 + b1da130 commit 40b23a9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
## Plugin Manager (dd-mm-yyyy)

### 1.0.10 (20-04-2024)
### 1.0.11 (20-04-2024)

- Fixing up the bug in Refreshing Plugins button.
- Fixed positions of a few buttons.

### 1.0.10 (19-04-2024)

- Fixed up a bug in Refreshing Plugins button.

### 1.0.9 (19-04-2024)

- Making the Plugin Manager look a little cleaner.
- Made the Plugin names look a little cleaner.

### 1.0.8 (11-04-2024)

Expand Down
6 changes: 6 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
"versions": {
"1.0.11": {
"api_version": 8,
"commit_sha": "4228b3e",
"released_on": "20-04-2024",
"md5sum": "c22d4d2270e17971b6559edac845d0ff"
},
"1.0.10": {
"api_version": 8,
"commit_sha": "6dd86ef",
Expand Down
11 changes: 7 additions & 4 deletions plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import logging


PLUGIN_MANAGER_VERSION = "1.0.10"
PLUGIN_MANAGER_VERSION = "1.0.11"
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
# Current tag can be changed to "staging" or any other branch in
# plugin manager repo for testing purpose.
Expand Down Expand Up @@ -1004,7 +1004,11 @@ async def draw_ui(self):

if to_draw_button1:
bui.buttonwidget(parent=self._root_widget,
position=(width * 0.1, pos),
position=(
width * (
0.1 if self.plugin.is_installed and has_update else
0.25 if self.plugin.is_installed else
0.4), pos),
size=button_size,
on_activate_call=button1_action,
color=b1_color,
Expand All @@ -1015,7 +1019,7 @@ async def draw_ui(self):

if self.plugin.is_installed:
bui.buttonwidget(parent=self._root_widget,
position=(width * 0.4, pos),
position=(width * (0.4 if has_update else 0.55), pos),
size=button_size,
on_activate_call=button2_action,
color=b2_color,
Expand All @@ -1025,7 +1029,6 @@ async def draw_ui(self):
label=button2_label)

if has_update:
# button3 =
bui.buttonwidget(parent=self._root_widget,
position=(width * 0.7, pos),
size=button_size,
Expand Down

0 comments on commit 40b23a9

Please sign in to comment.