Comments (11)
Hi @gschier , I am taking up this issue.
from insomnia.
After looking at the Electron documentation, i found that BrowerWindow has a property autoHideMenuBar which enables this behaviour.
autoHideMenuBar Boolean (optional) - Auto hide the menu bar unless the Alt key is pressed. Default is false.
https://electron.atom.io/docs/api/browser-window/#new-browserwindowoptions
Let me know, what you guys think about this option?
from insomnia.
For whoever takes this on, this PR is a good jumping-off point for work atom/atom#4215
from insomnia.
Question:
- Is this setting going to be found in the preferences section or the view tab?
- Would you like a keybinding for this improvement as well?
from insomnia.
Nice find @brandonb927! 💯 🥇
from insomnia.
Electron has a setMenu
method that looks like it might work to hide the window: https://electron.atom.io/docs/api/browser-window/#winsetmenumenu-linux-windows.
Could add a menu item on Win/Linux to toggle it on the active window. Just have to figure out which hotkey to use.
from insomnia.
Hi everyone! I'm handling issue #195, and its solution will affect this issue. I'll keep you guys posted.
from insomnia.
@PavanKu that looks like exactly what we want. Did you test it out yet?
from insomnia.
@gschier , No. I don't have window or linux machine to test this. 😞
from insomnia.
I took a look at it, I was able to add a checkbox in the settings for toggling auto-hide Menu Bar, but I wasn't sure where to tell Electron to hide/show the bar (looks like there's a BrowserWindow function to set it). I'm on Linux if you have a solution and need me to test it, otherwise I'll keep looking at it tomorrow.
from insomnia.
@Subzidion. Nice!
You can get the current BrowserWindow with electron.remote.BrowserWindow.getFocusedWindow()
, then set the option. We'll have to make sure to do this both when the app is first rendered and when the setting changes. It might be a good place to put this in containers/app.js
in componentDidMount()
.
It might also be a good idea to add autoHideMenuBar: true
to window-utils.js
to prevent the menubar from showing briefly before disappearing.
from insomnia.
Related Issues (20)
- Folders only open and close when clicking folder and not name HOT 3
- Unable to install 9.3.2 HOT 1
- Response body attribute removed from header value on send action
- Undo ignores last changes when cursor changes context HOT 4
- OAuth request no longer made with a default User Agent HOT 3
- Query Parameters on Saved API's not updating correctly HOT 2
- imported environment is empty HOT 3
- Environment is not showing for Folder on latest release HOT 2
- No "minimize" or "close" button on windows HOT 1
- OAuth2.0 - New Response missing 'parentId' (failed to generate token) HOT 2
- Last edited parameter is not saved when sending requests HOT 6
- Recently changed varable in header or parameter values is reverted after sending a request HOT 4
- NTLM Authentication issue in Insomnia 9.3.2 HOT 5
- All Saved Requests lost HOT 14
- Pre-Request Scripts are not executed in Test-Suites HOT 1
- SSE - Header environment variable is not evaluate before request HOT 1
- pre request autocomplete with key `tab`
- Application Error HOT 1
- Git Clone - Collection - Folder - Auth cannot be pulled from repo HOT 3
- Edit Tags Not Persisting HOT 1
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 insomnia.