add page flip
This commit is contained in:
@@ -17,6 +17,8 @@ func load_gallery() -> void:
|
||||
for file_path in saved_photos:
|
||||
if FileAccess.file_exists(file_path):
|
||||
_create_photo_thumbnail(file_path)
|
||||
if is_inside_tree():
|
||||
await get_tree().process_frame
|
||||
|
||||
func _create_photo_thumbnail(file_path: String) -> void:
|
||||
var image = Image.load_from_file(file_path)
|
||||
|
||||
Reference in New Issue
Block a user