From 1fbdd69771da1da873100015082ed6f82322881d Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Mon, 27 Mar 2023 20:48:06 -0400 Subject: [PATCH] Fix link opening --- backend/src/settings/steam_deck/power_dpm_force.rs | 2 +- src/components/debug.tsx | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/src/settings/steam_deck/power_dpm_force.rs b/backend/src/settings/steam_deck/power_dpm_force.rs index dc23a48..806b774 100644 --- a/backend/src/settings/steam_deck/power_dpm_force.rs +++ b/backend/src/settings/steam_deck/power_dpm_force.rs @@ -61,7 +61,7 @@ impl PDFPLManager { let mode: String = usdpl_back::api::files::read_single(DPM_FORCE_LIMITS_PATH.to_owned()).map_err(|e| { vec![SettingError { msg: format!( - "Failed to write `manual` to `{}`: {}", + "Failed to read `{}`: {}", DPM_FORCE_LIMITS_PATH, e ), setting: crate::settings::SettingVariant::General, diff --git a/src/components/debug.tsx b/src/components/debug.tsx index cdb5051..d858253 100644 --- a/src/components/debug.tsx +++ b/src/components/debug.tsx @@ -5,7 +5,8 @@ import { Field, PanelSectionRow, staticClasses, - Router, + //Router, + Navigation, } from "decky-frontend-lib"; import * as backend from "../backend"; import { tr } from "usdpl-front"; @@ -37,7 +38,7 @@ function buildDebug() { if (eggCount % 10 == 9) { // you know you're bored and/or conceited when you spend time adding an easter egg // that just sends people to your own project's repo - Router.NavigateToExternalWeb("https://github.com/NGnius/PowerTools/releases"); + Navigation.NavigateToExternalWeb("https://github.com/NGnius/PowerTools/releases"); } eggCount++; }}> @@ -53,9 +54,9 @@ function buildDebug() { eggCount++}> - {eggCount % 10 == 9 ? "Tracy Chapman" : get_value(DRIVER_INFO)} + {eggCount % 10 == 9 ? "Ryan Gosling" : get_value(DRIVER_INFO)} @@ -65,7 +66,7 @@ function buildDebug() { if (eggCount % 10 == 9) { // you know you're bored and/or conceited when you spend time adding an easter egg // that just sends people to your own project's repo - Router.NavigateToExternalWeb("https://github.com/NGnius/usdpl-rs"); + Navigation.NavigateToExternalWeb("https://github.com/NGnius/usdpl-rs"); } eggCount++; }}>