Skip to content

Commit

Permalink
fix: weather category was not previously set automatically
Browse files Browse the repository at this point in the history
The weather category has to be set after the WeatherManager was instanced
  • Loading branch information
Mathias Baumgartinger~ committed Aug 8, 2023
1 parent 90182bf commit 2588866
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions UI/Weather/WeatherUI.gd
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
extends VBoxContainer


var weather_manager: WeatherManager
var weather_manager: WeatherManager :
set(manager):
weather_manager = manager
_on_preconfiguration_selected(0)


func _ready():
# Connect weather option signals with weather_manager
Expand All @@ -27,7 +31,6 @@ func _ready():
# Add/apply preconfigurated weather categories and connect signals
_add_preconfigured_options()
$Preconfigurations/OptionButton.item_selected.connect(_on_preconfiguration_selected)
$Preconfigurations/OptionButton.select(0)


func _add_preconfigured_options():
Expand Down

0 comments on commit 2588866

Please sign in to comment.