Skip to content

Commit

Permalink
Clean up how the debug device works
Browse files Browse the repository at this point in the history
  • Loading branch information
retrixe committed Feb 21, 2025
1 parent e975d01 commit bee903a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/imprint
/*.iso

### Go ###
# Binaries for programs and plugins
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ func main() {
return
}
if os.Getenv("DEBUG") == "true" {
homedir, err := os.UserHomeDir()
workdir, err := os.Getwd()
if err == nil {
devices = append(devices, app.Device{
Name: filepath.Join(homedir, "debug.iso"),
Model: "Write to debug ISO in home dir",
Name: filepath.Join(workdir, "debug.iso"),
Model: "Write to debug ISO",
Bytes: 10000000000,
Size: "10 TB",
Size: "Virtual",
})
}
}
Expand Down
1 change: 1 addition & 0 deletions renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ProgressScreen from './screens/ProgressScreen'

// TODO: Experiment with lg size for the UI.
const App = (): JSX.Element => {
// useColorScheme().setMode('dark')
const [file, setFile] = useState('')
const [device, setDevice] = useState<string | null>(null)
const [devices, setDevices] = useState<string[]>([])
Expand Down

0 comments on commit bee903a

Please sign in to comment.