Skip to content

Commit c4ec6f4

Browse files
committed
- Fix default checkbox options
1 parent f2f7f79 commit c4ec6f4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

main.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import (
2222

2323
// Options stores the global application settings
2424
var Options struct {
25-
FlatMatrix bool // Whether to flatten the matrix when saving
26-
MatlabSaveFormat bool // Whether to save in MATLAB compatible format
27-
MatrixCol int // Number of columns in the output matrix
28-
MatrixRow int // Number of rows in the output matrix
29-
SettingsSaved bool // Whether settings have been saved and locked
25+
FlatMatrix bool // Whether to flatten the matrix when saving
26+
MatlabSaveFormat bool // Whether to save in MATLAB compatible format
27+
MatrixCol int // Number of columns in the output matrix
28+
MatrixRow int // Number of rows in the output matrix
29+
SettingsSaved bool // Whether settings have been saved and locked
3030
}
3131

3232
// main initializes and runs the Draw2Matrix application
@@ -45,9 +45,9 @@ func main() {
4545
a.Settings().SetTheme(themes[currentTheme])
4646

4747
// Initialize default application options
48-
Options.FlatMatrix = true // Default to flat matrix output
49-
Options.MatlabSaveFormat = true // Default to MATLAB format
50-
48+
Options.FlatMatrix = false // Default to flat matrix output
49+
Options.MatlabSaveFormat = false // Default to MATLAB format
50+
5151
// Initialize UI components
5252
paint := NewPaintWidget()
5353
paint.Resize(fyne.NewSize(20, 20))
@@ -91,14 +91,14 @@ func main() {
9191
dialog.ShowError(fmt.Errorf("please first save settings"), w)
9292
return
9393
}
94-
94+
9595
// Validate save path
9696
path := savePath.Text
9797
if path == "" {
9898
dialog.ShowError(errors.New("path is empty"), w)
9999
return
100100
}
101-
101+
102102
// Validate data filename
103103
dataFileName := dataFileEntry.Text
104104
if dataFileName == "" {
@@ -322,7 +322,7 @@ func main() {
322322
w.CenterOnScreen()
323323

324324
// Configure application lifecycle handlers
325-
325+
326326
// OnStarted: Initialize matrix display
327327
a.Lifecycle().SetOnStarted(func() {
328328
// Temporarily disable stdout to prevent matrix printing
@@ -331,7 +331,7 @@ func main() {
331331
paint.PrintMatrix(w, Options.FlatMatrix)
332332
os.Stdout = oldStdOut
333333
})
334-
334+
335335
// OnStopped: Clean up temporary files
336336
a.Lifecycle().SetOnStopped(func() {
337337
if TempData.file != nil {
@@ -348,7 +348,7 @@ func main() {
348348
TempData.file.Close()
349349
}
350350
})
351-
351+
352352
// Start the application
353353
w.ShowAndRun()
354354
}

0 commit comments

Comments
 (0)