mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 22:43:17 +08:00
commit
9c5df166da
@ -7,6 +7,7 @@ from __future__ import annotations
|
|||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import ba
|
import ba
|
||||||
|
from bastd.ui.confirm import ConfirmWindow
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
pass
|
pass
|
||||||
@ -83,7 +84,9 @@ class PluginSettingsWindow(ba.Window):
|
|||||||
autoselect=True,
|
autoselect=True,
|
||||||
label=ba.Lstr(resource='pluginsEnableAllText'),
|
label=ba.Lstr(resource='pluginsEnableAllText'),
|
||||||
text_scale=1.0,
|
text_scale=1.0,
|
||||||
on_activate_call=self._enable_all_plugins,
|
on_activate_call=lambda: ConfirmWindow(
|
||||||
|
action=self._enable_all_plugins,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
self._y_position -= 70
|
self._y_position -= 70
|
||||||
@ -94,7 +97,9 @@ class PluginSettingsWindow(ba.Window):
|
|||||||
autoselect=True,
|
autoselect=True,
|
||||||
label=ba.Lstr(resource='pluginsDisableAllText'),
|
label=ba.Lstr(resource='pluginsDisableAllText'),
|
||||||
text_scale=1.0,
|
text_scale=1.0,
|
||||||
on_activate_call=self._disable_all_plugins,
|
on_activate_call=lambda: ConfirmWindow(
|
||||||
|
action=self._disable_all_plugins,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
self._y_position -= 70
|
self._y_position -= 70
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user