Skip to content

Commit

Permalink
Other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Dec 26, 2024
1 parent 62ce4de commit 6f9b03f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion AutoSubs-App/src/GlobalContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, createContext, useState, useContext, useRef } from 'react';
import { fetch } from '@tauri-apps/plugin-http';
import { readTextFile, exists, writeTextFile } from '@tauri-apps/plugin-fs';
import { join, downloadDir, appCacheDir, cacheDir } from '@tauri-apps/api/path';
import { open, save } from '@tauri-apps/plugin-dialog';
import { save } from '@tauri-apps/plugin-dialog';
import { Subtitle, Speaker, TopSpeaker, EnabeledSteps, ErrorMsg, TimelineInfo } from "@/types/interfaces";
import { load, Store } from '@tauri-apps/plugin-store';
import { Child, Command } from '@tauri-apps/plugin-shell';
Expand Down Expand Up @@ -643,6 +643,7 @@ export function GlobalProvider({ children }: React.PropsWithChildren<{}>) {
}
}

/*
async function importSubtitles() {
try {
const transcriptPath = await open({
Expand Down Expand Up @@ -703,6 +704,7 @@ export function GlobalProvider({ children }: React.PropsWithChildren<{}>) {
});
}
}
*/

async function updateTranscript(speakers?: Speaker[], topSpeaker?: TopSpeaker, subtitles?: Subtitle[]) {
if (!speakers && !subtitles) {
Expand Down
1 change: 0 additions & 1 deletion AutoSubs-App/src/pages/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ export function HomePage() {
setError,
fetchTranscription,
exportSubtitles,
populateSubtitles,
getTimelineInfo,
resetSettings,
} = useGlobal();
Expand Down

0 comments on commit 6f9b03f

Please sign in to comment.