Skip to content

Commit

Permalink
fix: resolve issue with missing mod thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
metebykl committed Aug 9, 2024
1 parent 66f3166 commit 1c5883d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/windows/installer/wails_tools.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
!define INFO_PRODUCTNAME "AeroMod"
!endif
!ifndef INFO_PRODUCTVERSION
!define INFO_PRODUCTVERSION "0.8.5"
!define INFO_PRODUCTVERSION "0.8.6"
!endif
!ifndef INFO_COPYRIGHT
!define INFO_COPYRIGHT "Built under GPL-3.0 license"
Expand Down
2 changes: 1 addition & 1 deletion internal/msfs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *Client) IsModEnabled(modName string) (bool, error) {
}

func (c *Client) GetModThumbnailBase64(modName string) (string, error) {
modPath := filepath.Join(c.config.communityFolder, modName)
modPath := filepath.Join(c.config.modFolder, modName)
thumbnailPath := filepath.Join(modPath, "ContentInfo", modName, "Thumbnail.jpg")
if _, err := os.Stat(thumbnailPath); errors.Is(err, os.ErrNotExist) {
return "", fmt.Errorf("mod: %s, doesnt have a thumbnail", modName)
Expand Down
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"companyName": "AeroMod",
"productName": "AeroMod",
"productVersion": "0.8.5",
"productVersion": "0.8.6",
"copyright": "Built under GPL-3.0 license",
"comments": "External mod manager for MSFS"
}
Expand Down

0 comments on commit 1c5883d

Please sign in to comment.