Skip to content

Commit f28a158

Browse files
committed
live-preview: Fix MenuBar showing when "hide_ui" setting is set
Also remove extra button that was added by mistake under the view
1 parent a0192d4 commit f28a158

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tools/lsp/ui/main.slint

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export component PreviewUi inherits Window {
4444
icon: @image-url("assets/slint-logo-small-light.png");
4545
always-on-top <=> Api.always-on-top;
4646

47-
MenuBar {
47+
if Api.show-preview-ui : MenuBar {
4848
Menu {
4949
title: @tr("File");
5050

@@ -119,14 +119,6 @@ export component PreviewUi inherits Window {
119119
}
120120
}
121121

122-
Button {
123-
icon: Icons.sync;
124-
colorize-icon: true;
125-
clicked => {
126-
Api.reload-preview();
127-
}
128-
}
129-
130122
init => {
131123
WindowGlobal.window-width = self.width;
132124
WindowGlobal.window-height = self.height;

0 commit comments

Comments
 (0)