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