Skip to content

Commit

Permalink
BUG fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatDamon committed Feb 8, 2024
1 parent ad6d3d8 commit f1ee8f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ def alwaysOnTop(e):
page.window_always_on_top = True
windowOnTop_btn.icon = ft.icons.PUSH_PIN
windowOnTop_btn.tooltip = lang.tooltips["cancelAlwaysOnTop"]
page.snack_bar = ft.SnackBar(ft.Text(value = lang.mainMenu["beenTop"]))
page.snack_bar.open = True
# page.snack_bar = ft.SnackBar(ft.Text(value = lang.mainMenu["beenTop"]))
# page.snack_bar.open = True
elif page.window_always_on_top == True:
page.window_always_on_top = False
windowOnTop_btn.icon = ft.icons.PUSH_PIN_OUTLINED
windowOnTop_btn.tooltip = lang.tooltips["alwaysOnTop"]
page.snack_bar = ft.SnackBar(ft.Text(value = lang.mainMenu["beenUntop"]))
page.snack_bar.open = True
# page.snack_bar = ft.SnackBar(ft.Text(value = lang.mainMenu["beenUntop"]))
# page.snack_bar.open = True
page.update()
logging.info("Page updated")

Expand Down

0 comments on commit f1ee8f8

Please sign in to comment.