forked from NG-SD-Plugins/PowerTools
Update to latest pluginlib version
This commit is contained in:
parent
2f32c5b2b4
commit
1fbfb8a743
3 changed files with 12 additions and 12 deletions
2
main.py
2
main.py
|
@ -5,7 +5,7 @@ import asyncio
|
|||
import pathlib
|
||||
import subprocess
|
||||
|
||||
VERSION = "0.7.0-alpha-react"
|
||||
VERSION = "0.7.0-indev"
|
||||
HOME_DIR = "/home/deck"
|
||||
DEFAULT_SETTINGS_LOCATION = HOME_DIR + "/.config/powertools/default_settings.json"
|
||||
LOG_LOCATION = "/tmp/powertools.log"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "PowerTools",
|
||||
"author": "NGnius",
|
||||
"flags": ["root", "debug"],
|
||||
"flags": ["root", "_debug"],
|
||||
"publish": {
|
||||
"discord_id": "106537989684887552",
|
||||
"description": "Power tweaks for power users",
|
||||
|
|
|
@ -10,8 +10,8 @@ import {
|
|||
ServerAPI,
|
||||
//showContextMenu,
|
||||
staticClasses,
|
||||
Slider,
|
||||
Toggle,
|
||||
SliderField,
|
||||
ToggleField,
|
||||
//NotchLabel
|
||||
gamepadDialogClasses,
|
||||
joinClassNames,
|
||||
|
@ -139,7 +139,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
CPU
|
||||
</div>
|
||||
<PanelSectionRow>
|
||||
<Toggle
|
||||
<ToggleField
|
||||
checked={smtGlobal}
|
||||
label="SMT"
|
||||
description="Enables odd-numbered CPUs"
|
||||
|
@ -152,7 +152,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
/>
|
||||
</PanelSectionRow>
|
||||
<PanelSectionRow>
|
||||
<Slider
|
||||
<SliderField
|
||||
label="Threads"
|
||||
value={cpusGlobal}
|
||||
step={1}
|
||||
|
@ -169,7 +169,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
/>
|
||||
</PanelSectionRow>
|
||||
<PanelSectionRow>
|
||||
<Toggle
|
||||
<ToggleField
|
||||
checked={boostGlobal}
|
||||
label="Boost"
|
||||
description="Allows the CPU to go above max frequency"
|
||||
|
@ -181,7 +181,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
/>
|
||||
</PanelSectionRow>
|
||||
<PanelSectionRow>
|
||||
<Slider
|
||||
<SliderField
|
||||
label="Max Frequency"
|
||||
value={freqGlobal}
|
||||
max={2}
|
||||
|
@ -208,7 +208,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
</div>
|
||||
<PanelSectionRow>
|
||||
{/* index: 1 */}
|
||||
<Slider
|
||||
<SliderField
|
||||
label="SlowPPT Power"
|
||||
value={slowPPTGlobal}
|
||||
max={2}
|
||||
|
@ -231,7 +231,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
</PanelSectionRow>
|
||||
<PanelSectionRow>
|
||||
{/* index: 2 */}
|
||||
<Slider
|
||||
<SliderField
|
||||
label="FastPPT Power"
|
||||
value={fastPPTGlobal}
|
||||
max={2}
|
||||
|
@ -282,7 +282,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
</PanelSectionRow>
|
||||
{/* Persistence */}
|
||||
<PanelSectionRow>
|
||||
<Toggle
|
||||
<ToggleField
|
||||
checked={persistGlobal}
|
||||
label="Persistent"
|
||||
description="Restores settings after an app or OS restart"
|
||||
|
@ -294,7 +294,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({serverAPI}) => {
|
|||
/>
|
||||
</PanelSectionRow>
|
||||
<PanelSectionRow>
|
||||
<Toggle
|
||||
<ToggleField
|
||||
checked={perGameProfileGlobal}
|
||||
label="Use per-game profile"
|
||||
onChange={(p: boolean) => {
|
||||
|
|
Loading…
Reference in a new issue