fixed bug in 'flet_gallery_window.py'(flet ui)

This commit is contained in:
aedhcarrick 2022-12-20 14:20:58 -06:00
parent 46e1cf680c
commit 028cd2c603
3 changed files with 4 additions and 4 deletions

View File

@ -88,9 +88,9 @@ def add_as_new_layer(e):
e.page.asset_manager.add_images_as_layers(gallery_window.selected_images)
gallery_window.selected_images.clear()
for tab in gallery_window.content.content.tabs:
for image in tab.content.controls:
for image in tab.content.content.controls:
image.border = None
tab.update()
image.update()
def save_to_disk(e):
pass

View File

@ -178,7 +178,7 @@ def open_close_layer_properties(e):
layer_property_header = ft.Column(
controls = [
ft.TextButton(
text = "layer Properties",
text = "Layer Properties",
icon = ft.icons.ARROW_RIGHT,
on_click = open_close_layer_properties,
disabled = True,

View File

@ -95,6 +95,7 @@ def main(page: ft.Page):
# asset manager
page.asset_manager = asset_manager
page.active_layer = None
# canvas
page.canvas = canvas
@ -110,7 +111,6 @@ def main(page: ft.Page):
# property manager
page.property_manager = property_manager
page.preview_height = 200
# settings
def load_settings():