Comments (6)
Caused by #4482
from slint.
So there's no way to intercept this AFAICS. Winit calls terminate
unconditionalyl and that's it. I think the best we can do at this point is to not detect this as a crash and quietly restart the lsp - at least within vscode.
from slint.
Can we fix or fill an issue in winit to make this behavior configurable?
from slint.
I don't think we should file an issue with winit to change the behaviour of the "Quit " menu item to not call terminate. That menu is a stop-gap and for example it suffers from the inability to translate the menu entries.
I think we should close #4482 as wont fix and implement #38 instead, which permits the user to handle this cleanly.
For this issue here, I suggest to work around it in the preview. Easiest would be to disable the system menu (with_default_menu(false)
). That's I think strictly speaking a violation of the HIG. So if that's not acceptable, then we could just implement our own macOS menu with a little platform specific code until #38 is done. @nigel how bad do you think it would be not to have the menu (and thus shortcut) for the slint live-preview window?
from slint.
Not sure what I am being asked. I don't care about the menu, but I need a keyboard shortcut to restart the preview. I guess another stop gap is a button in the UI that you have to click, but that does seem a pain to force mouse use.
from slint.
You've answered my question - thanks ;-). I'll make a patch to remove the menu (and shortcut) for the Live-Preview.
from slint.
Related Issues (20)
- VSCode Extension: slint.{includePaths, libraryPaths} should support ${workspaceFolder} interpolation
- Add VecModel::swap
- vscode: Unexpected insertion of semicolons HOT 3
- Language server ignores `SLINT_ENABLE_EXPERIMENTAL_FEATURES` HOT 10
- Unable to have multiple Timer {} running
- Timer {} in component isn't running
- Path dose not work well on renderer-skia-opengl
- Redundant display when input Chinese on LineEdit (or TextEdit) HOT 1
- Adding an `invoke_from_event_loop()` with non-`Send` closure HOT 4
- `LineEdit`'s `text` property doesn't follow its bound value anymore after editing HOT 4
- `debug()` adds undesired commas HOT 2
- One-line text box widgets should select all text when receiving focus via keyboard HOT 4
- Nightly VScode extension broken on MacOS
- `GroupBox` has unevenly distributed padding and misses a `padding` property
- Have Math.atan2 HOT 1
- PopupWindow does not resize to the content size HOT 1
- StandardTableView hangs with high CPU usage when scrolling down in a large table HOT 3
- Dashed/dotted strokes
- String with escape in string breaks syntax highlighting in VS Code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.