Skip to content

Commit

Permalink
web: Disable unsupported menu buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jturcotte committed Nov 5, 2024
1 parent 1e44fba commit 1c33daf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/menu_dialog.slint
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export component MenuDialog inherits OverlayDialog {
root.closed();
}
}
if !desktop_web:
Button {
text: "Open File";
clicked => {
Expand All @@ -88,20 +89,23 @@ export component MenuDialog inherits OverlayDialog {
}
}
}
if !desktop_web:
Button {
text: "Save";
clicked => {
GlobalEngine.save_project();
root.closed();
}
}
if !desktop_web:
Button {
text: "Save as";
clicked => {
GlobalEngine.save_project_as();
root.closed();
}
}
if !desktop_web:
Button {
text: "Export as GBA .sav";
clicked => {
Expand Down

0 comments on commit 1c33daf

Please sign in to comment.