Fix link opening

This commit is contained in:
NGnius (Graham) 2023-03-27 20:48:06 -04:00
parent 27afa31520
commit 1fbdd69771
2 changed files with 7 additions and 6 deletions

View file

@ -61,7 +61,7 @@ impl PDFPLManager {
let mode: String = usdpl_back::api::files::read_single(DPM_FORCE_LIMITS_PATH.to_owned()).map_err(|e| { let mode: String = usdpl_back::api::files::read_single(DPM_FORCE_LIMITS_PATH.to_owned()).map_err(|e| {
vec![SettingError { vec![SettingError {
msg: format!( msg: format!(
"Failed to write `manual` to `{}`: {}", "Failed to read `{}`: {}",
DPM_FORCE_LIMITS_PATH, e DPM_FORCE_LIMITS_PATH, e
), ),
setting: crate::settings::SettingVariant::General, setting: crate::settings::SettingVariant::General,

View file

@ -5,7 +5,8 @@ import {
Field, Field,
PanelSectionRow, PanelSectionRow,
staticClasses, staticClasses,
Router, //Router,
Navigation,
} from "decky-frontend-lib"; } from "decky-frontend-lib";
import * as backend from "../backend"; import * as backend from "../backend";
import { tr } from "usdpl-front"; import { tr } from "usdpl-front";
@ -37,7 +38,7 @@ function buildDebug() {
if (eggCount % 10 == 9) { if (eggCount % 10 == 9) {
// you know you're bored and/or conceited when you spend time adding an easter egg // 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 // 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++; eggCount++;
}}> }}>
@ -53,9 +54,9 @@ function buildDebug() {
</PanelSectionRow> </PanelSectionRow>
<PanelSectionRow> <PanelSectionRow>
<Field <Field
label={tr("Driver")} label={ eggCount % 10 == 9 && tr("Driver") == "Driver" ? "Drive" : tr("Driver")}
onClick={()=> eggCount++}> onClick={()=> eggCount++}>
{eggCount % 10 == 9 ? "Tracy Chapman" : get_value(DRIVER_INFO)} {eggCount % 10 == 9 ? "Ryan Gosling" : get_value(DRIVER_INFO)}
</Field> </Field>
</PanelSectionRow> </PanelSectionRow>
<PanelSectionRow> <PanelSectionRow>
@ -65,7 +66,7 @@ function buildDebug() {
if (eggCount % 10 == 9) { if (eggCount % 10 == 9) {
// you know you're bored and/or conceited when you spend time adding an easter egg // 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 // 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++; eggCount++;
}}> }}>