@@ -438,7 +438,7 @@ func (a *Contracts) Update(ctx context.Context) {
438438 if err != nil {
439439 slog .Error ("Failed to refresh contracts UI" , "err" , err )
440440 fyne .Do (func () {
441- a .footer .Text = fmt .Sprintf ("ERROR: %s" , app .ErrorDisplay (err ))
441+ a .footer .Text = fmt .Sprintf ("ERROR: %s" , a . u .ErrorDisplay (err ))
442442 a .footer .Importance = widget .DangerImportance
443443 a .footer .Refresh ()
444444 })
@@ -569,7 +569,7 @@ func ShowCharacterContractWindow(u uiservices.UIServices, characterID, contractI
569569 ctx := context .Background ()
570570 o , err := u .Character ().GetContract (ctx , characterID , contractID )
571571 if err != nil {
572- xdialog .ShowErrorAndLog ("Failed to show contract" , err , u .MainWindow ())
572+ xdialog .ShowErrorAndLog ("Failed to show contract" , err , u .IsDeveloperMode (), u . MainWindow ())
573573 return
574574 }
575575 title := fmt .Sprintf ("Contract #%d" , contractID )
@@ -654,7 +654,7 @@ func ShowCharacterContractWindow(u uiservices.UIServices, characterID, contractI
654654 case app .ContractTypeAuction :
655655 total , err := u .Character ().CountContractBids (ctx , o .ID )
656656 if err != nil {
657- xdialog .ShowErrorAndLog ("Failed to show contract bids" , err , u .MainWindow ())
657+ xdialog .ShowErrorAndLog ("Failed to show contract bids" , err , u .IsDeveloperMode (), u . MainWindow ())
658658 return
659659 }
660660 var currentBid string
@@ -663,7 +663,7 @@ func ShowCharacterContractWindow(u uiservices.UIServices, characterID, contractI
663663 } else {
664664 top , err := u .Character ().GetContractTopBid (ctx , o .ID )
665665 if err != nil {
666- xdialog .ShowErrorAndLog ("Failed to show contract top bid" , err , u .MainWindow ())
666+ xdialog .ShowErrorAndLog ("Failed to show contract top bid" , err , u .IsDeveloperMode (), u . MainWindow ())
667667 return
668668 }
669669 currentBid = fmt .Sprintf ("%s (%d bids so far)" , formatISKAmount (float64 (top .Amount )), total )
@@ -730,7 +730,7 @@ func ShowCharacterContractWindow(u uiservices.UIServices, characterID, contractI
730730 main .Add (widget .NewSeparator ())
731731 x , err := makeItemsInfo (o )
732732 if err != nil {
733- xdialog .ShowErrorAndLog ("Failed to show contract items" , err , u .MainWindow ())
733+ xdialog .ShowErrorAndLog ("Failed to show contract items" , err , u .IsDeveloperMode (), u . MainWindow ())
734734 return
735735 }
736736 main .Add (x )
@@ -750,7 +750,7 @@ func ShowCorporationContractWindow(u uiservices.UIServices, corporationID, contr
750750 ctx := context .Background ()
751751 o , err := u .Corporation ().GetContract (ctx , corporationID , contractID )
752752 if err != nil {
753- xdialog .ShowErrorAndLog ("Failed to show contract" , err , u .MainWindow ())
753+ xdialog .ShowErrorAndLog ("Failed to show contract" , err , u .IsDeveloperMode (), u . MainWindow ())
754754 return
755755 }
756756 title := fmt .Sprintf ("Contract #%d" , contractID )
@@ -835,7 +835,7 @@ func ShowCorporationContractWindow(u uiservices.UIServices, corporationID, contr
835835 case app .ContractTypeAuction :
836836 total , err := u .Character ().CountContractBids (ctx , o .ID )
837837 if err != nil {
838- xdialog .ShowErrorAndLog ("Failed to show contract bids" , err , u .MainWindow ())
838+ xdialog .ShowErrorAndLog ("Failed to show contract bids" , err , u .IsDeveloperMode (), u . MainWindow ())
839839 return
840840 }
841841 var currentBid string
@@ -844,7 +844,7 @@ func ShowCorporationContractWindow(u uiservices.UIServices, corporationID, contr
844844 } else {
845845 top , err := u .Character ().GetContractTopBid (ctx , o .ID )
846846 if err != nil {
847- xdialog .ShowErrorAndLog ("Failed to show contract top bid" , err , u .MainWindow ())
847+ xdialog .ShowErrorAndLog ("Failed to show contract top bid" , err , u .IsDeveloperMode (), u . MainWindow ())
848848 return
849849 }
850850 currentBid = fmt .Sprintf ("%s (%d bids so far)" , formatISKAmount (float64 (top .Amount )), total )
@@ -911,7 +911,7 @@ func ShowCorporationContractWindow(u uiservices.UIServices, corporationID, contr
911911 main .Add (widget .NewSeparator ())
912912 x , err := makeItemsInfo (o )
913913 if err != nil {
914- xdialog .ShowErrorAndLog ("Failed to show contract items" , err , u .MainWindow ())
914+ xdialog .ShowErrorAndLog ("Failed to show contract items" , err , u .IsDeveloperMode (), u . MainWindow ())
915915 return
916916 }
917917 main .Add (x )
0 commit comments