mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Update plugin updation example
This commit is contained in:
parent
230ae028e0
commit
8209a3eeb0
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -149,17 +149,17 @@ diff --git a/plugins/utilities/sample_plugin.py b/plugins/utilities/sample_plugi
|
|||
index ebb7dcc..da2b312 100644
|
||||
--- a/plugins/utilities/sample_plugin.py
|
||||
+++ b/plugins/utilities/sample_plugin.py
|
||||
@@ -5,6 +5,7 @@ import ba
|
||||
class Main(ba.Plugin):
|
||||
@@ -5,6 +5,7 @@ import babase
|
||||
class Main(babase.Plugin):
|
||||
def on_app_running(self):
|
||||
ba.screenmessage("Hi! I am a sample plugin!")
|
||||
babase.screenmessage("Hi! I am a sample plugin!")
|
||||
|
||||
def has_settings_ui(self):
|
||||
return True
|
||||
|
||||
def show_settings_ui(self, source_widget):
|
||||
- ba.screenmessage("You tapped my settings!")
|
||||
+ ba.screenmessage("Hey! This is my new screenmessage!")
|
||||
- babase.screenmessage("You tapped my settings!")
|
||||
+ babase.screenmessage("Hey! This is my new screenmessage!")
|
||||
```
|
||||
|
||||
To name this new version as `1.1.0`, add `"1.1.0": null,` just above the previous plugin version in `utilities.json`:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue