Skip to content

Commit

Permalink
fix: fix export in main ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelesaux committed May 1, 2024
1 parent 6345884 commit ccfed81
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 88 deletions.
2 changes: 1 addition & 1 deletion ui/martine-ui/egx_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (m *MartineUI) exportEgxDialog(ie *menu.ImageExport, w fyne.Window) {
func (m *MartineUI) ExportEgxImage(me *menu.DoubleImageMenu) {
pi := wgt.NewProgressInfinite("Saving...., please wait.", m.window)
pi.Show()
cfg := me.LeftImage.NewConfig(m.imageExport, true)
cfg := me.LeftImage.NewConfig(m.egxExport, true)
if cfg == nil {
pi.Hide()
return
Expand Down
2 changes: 1 addition & 1 deletion ui/martine-ui/egx_tab.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (m *MartineUI) MergeImages(di *menu.DoubleImageMenu) {
palette = di.RightImage.Palette()
secondIm = di.LeftImage
}
cfg := im.NewConfig(m.imageExport, false)
cfg := im.NewConfig(m.egxExport, false)
if cfg == nil {
return
}
Expand Down
84 changes: 0 additions & 84 deletions ui/martine-ui/export_dialog.go

This file was deleted.

2 changes: 1 addition & 1 deletion ui/martine-ui/export_tilemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (m *MartineUI) exportTilemapDialog(w fyne.Window) {
func (m *MartineUI) ExportTilemap(t *menu.TilemapMenu) {
pi := wgt.NewProgressInfinite("Saving...., Please wait.", m.window)
pi.Show()
cfg := t.ImageMenu.NewConfig(m.imageExport, true)
cfg := t.ImageMenu.NewConfig(m.tilemapExport, true)
cfg.OutputPath = t.ExportFolderPath
if m.IsClassicalTilemap(cfg.Size.Width, cfg.Size.Height) && !m.tilemap.IsSprite {
filename := filepath.Base(t.OriginalImagePath())
Expand Down
2 changes: 1 addition & 1 deletion ui/martine-ui/tilemap_tab.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (m *MartineUI) IsClassicalTilemap(width, height int) bool {
}

func (m *MartineUI) TilemapApply(me *menu.TilemapMenu) {
cfg := me.ImageMenu.NewConfig(m.imageExport, true)
cfg := me.ImageMenu.NewConfig(m.tilemapExport, true)
if cfg == nil {
return
}
Expand Down

0 comments on commit ccfed81

Please sign in to comment.