mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2024-12-14 05:58:18 +03:00
fixed bug in 'flet_gallery_window.py'(flet ui)
This commit is contained in:
parent
46e1cf680c
commit
028cd2c603
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user