Skip to content

Commit

Permalink
Fix tuner
Browse files Browse the repository at this point in the history
  • Loading branch information
nab138 committed Sep 21, 2024
1 parent 7249ba0 commit d129182
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ AdvantageScope includes the following tools:

**View the [online documentation](/docs/INDEX.md) or find it offline by clicking the 📖 icon in the tab bar.**

Feedback, feature requests, and bug reports are welcome on the [issues page](https://github.com/Mechanical-Advantage/AdvantageScope/issues). For non-public inquires, please send a message to [email protected].
Feedback, feature requests, and bug reports are welcome on the [issues page](https://github.com/FRCTeam3044/AdvantageScope-3044/issues).

![Example screenshot](/docs/resources/screenshot-light.png)

Expand Down
12 changes: 6 additions & 6 deletions src/hub/Tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,17 +678,17 @@ export default class Tabs {

/** Confirms the dangerous action of copying all data to different modes. */
confirmCopy(all: boolean, data: Object) {
// if (this.tabList[this.selectedTab].type == TabType.Tuner) {
// let controller = this.tabList[this.selectedTab].controller as TunerController;
// if (all) controller.confirmCopyAll(data);
// else controller.confirmCopyOne(data);
// }
if (this.tabList[this.selectedTab].type == TabType.Tuner) {
let controller = this.tabList[this.selectedTab].renderer as TunerRenderer;
if (all) controller.confirmCopyAll(data);
else controller.confirmCopyOne(data);
}
}

/** Confirms the dangerous action of copying all data to different modes. */
alertOxConfigWriteResult(result: string) {
if (this.tabList[this.selectedTab].type == TabType.Tuner) {
//(this.tabList[this.selectedTab].controller as TunerController).writeResult(result);
(this.tabList[this.selectedTab].renderer as TunerRenderer).writeResult(result);
} else if (this.tabList[this.selectedTab].type == TabType.ConfigEditor) {
(this.tabList[this.selectedTab].renderer as ConfigEditorRenderer).writeResult(result);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@ function setupMenu() {
function createAboutWindow() {
let detailLines: string[] = [];
detailLines.push("Version: " + (app.isPackaged ? app.getVersion() : "Development"));
detailLines.push("Distributor: " + (DISTRIBUTOR === Distributor.WPILib ? "WPILib" : "FRC 6328"));
detailLines.push("Distributor: " + (DISTRIBUTOR === Distributor.WPILib ? "WPILib" : "FRC 3044"));
detailLines.push("Platform: " + process.platform + "-" + process.arch);
detailLines.push("Build Date: " + BUILD_DATE);
detailLines.push("Electron: " + process.versions.electron);
Expand Down

0 comments on commit d129182

Please sign in to comment.