-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
32 lines (22 loc) · 888 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright: Ren Tatsumoto <tatsu at autistici.org>
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
from .ajt_common.addon_config import AddonConfigManager
class BrowserPlayButtonConfig(AddonConfigManager):
def __init__(self, default: bool = False) -> None:
super().__init__(default)
@property
def show_tooltips(self) -> bool:
return bool(self["show_tooltips"])
@property
def show_play_field_action(self) -> bool:
return bool(self["show_play_field_action"])
@property
def show_play_selection_action(self) -> bool:
return bool(self["show_play_selection_action"])
@property
def show_toolbar_button(self) -> bool:
return bool(self["show_toolbar_button"])
@property
def autoplay(self) -> bool:
return bool(self["autoplay"])
config = BrowserPlayButtonConfig()