-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win_options
will not work from second time
#33
Comments
@H9 I was not able to reproduce the problem in Windows, can you try to clone this repo > run |
@tsvetilian-ty thanks for the reply, I did as you asked on Mac, it works well, but in my project that uses this package, still can show that bug. Please look at following link that I take a record for you. It's so strange. |
@H9 it looks like the about window is going to it's default state. Can you try to pass the AboutWindowInfo object directly ? {
label: `About this app`,
click: () => openAboutWindow({
icon_path: path.join(__dirname, '/assets/icon.png'),
open_devtools: false,
use_version_info: false,
win_options: {titleBarStyle: 'hidden', minimizable: false, movable: false, resizable: false,maximizable: false}
})
} |
@tsvetilian-ty I tried, but still the same. |
I have the same exact problem in Windows 10. Here is a gist, to use with Electron Fiddle, that showcases the actual problem. Thanks! |
Until the #49 is merged you can try to pass a clone of your options object such as:
|
About-window version: ^1.12.1(install from npmjs.com)
ElectronJS Version: ^3.0.7
OS: macOS Mojave 10.14.2
Details in Codes
When run this app and click the menu
About this app
for first time, thewin_options
will work wellBut from the second, each time I click the menu
About this app
, thewin_options
will not workThis window has titleBar, and it can be moved, resized and more.
The text was updated successfully, but these errors were encountered: