Skip to content

Commit d9eab6a

Browse files
committed
Fix config and scraper popup sizes
1 parent 95b71e0 commit d9eab6a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

scenes/config/ConfigPopup.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func _input(event: InputEvent):
3939
last_tab = n_game_tab
4040
last_tab.grab_focus()
4141

42-
func popup(_rect: Rect2i = Rect2i(0, 0, 0, 0)):
42+
func open_config():
4343
super.popup_centered_ratio(0.8)
4444
_on_ConfigPopup_about_to_show()
4545

scenes/config/ScraperSettings.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func get_media_bitmask() -> int:
124124

125125
func _on_Scrape_pressed():
126126
n_ss_settings.save_credentials()
127-
n_scrape_popup.popup_centered()
127+
n_scrape_popup.popup_centered_ratio(0.8)
128128
var media_bitmask := get_media_bitmask()
129129
# TODO: Make Scraper generation dynamic according to selection
130130
var scraper := RetroHubScreenScraperScraper.new()

scenes/root/Root.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func _raw_input(event: InputEvent):
3030
if event.is_action_pressed("rh_menu") and not RetroHubConfig.config.is_first_time:
3131
if not $ConfigPopup.visible:
3232
get_viewport().set_input_as_handled()
33-
$ConfigPopup.popup()
33+
$ConfigPopup.open_config()
3434

3535
func _ready():
3636
closed_popup(null)

source/UI.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func open_app_config(tab: int = -1):
140140
_n_config_popup.n_tab_buttons[tab].grab_focus()
141141
_n_config_popup.n_tab_buttons[tab].button_pressed = true
142142
_n_config_popup._on_Tab_pressed(tab)
143-
_n_config_popup.popup_centered()
143+
_n_config_popup.open_config()
144144

145145
func show_warning(text: String):
146146
if _n_warning_popup:

0 commit comments

Comments
 (0)