Clear cursor when close button is clicked
@@ -119,6 +119,7 @@ fn mouse_down(
{
let settings = Arc::make_mut(&mut data.settings);
settings.shown = false;
+ ctx.clear_cursor();
return;
}
@@ -357,12 +358,10 @@ fn paint(&mut self, ctx: &mut PaintCtx, data: &LapceTabData, env: &Env) {
.get_color_unchecked(LapceTheme::EDITOR_BACKGROUND),
);
- const SETTINGS_SECTIONS: [&str; 3] = ["Core Settings", "Editor Settings", "Keybindings"];
+ const SETTINGS_SECTIONS: [&str; 3] =
+ ["Core Settings", "Editor Settings", "Keybindings"];
- for (i, text) in SETTINGS_SECTIONS
- .into_iter()
- .enumerate()
- {
+ for (i, text) in SETTINGS_SECTIONS.into_iter().enumerate() {
let text_layout = ctx
.text()
.new_text_layout(text)
