mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
Allow invisible models
This commit is contained in:
parent
21a81a67d1
commit
3221b3a567
2 changed files with 30 additions and 1 deletions
15
plugins/utilities/allow_invisible_models.py
Normal file
15
plugins/utilities/allow_invisible_models.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# ba_meta require api 7
|
||||
import ba
|
||||
|
||||
original_getmodel = ba.getmodel
|
||||
|
||||
|
||||
def get_model_gracefully(model):
|
||||
if model is not None:
|
||||
return original_getmodel(model)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class Main(ba.Plugin):
|
||||
def on_app_running(self):
|
||||
ba.getmodel = get_model_gracefully
|
||||
Loading…
Add table
Add a link
Reference in a new issue