WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@maidh91
Copy link
Contributor

@maidh91 maidh91 commented Feb 25, 2025

  • call the refresh function when cmd+r
  • remove dead code globalReloaderActive
  • note that there is a polling logic to check if devtools is unfocused, then unregister global shorcut (we need to unregister global shorcut so that it will not reload all running apps, should reload active app only)

    pear/gui/gui.js

    Lines 423 to 430 in c666cb5

    // electron has absolutely no functioning blur event of any kind
    // there is NO WAY in electron to react to devtools blur, so now this is happening:
    let devtoolsBlurPolling = null
    wc.on('devtools-opened', () => {
    devtoolsBlurPolling = setInterval(() => {
    if (wc.isDevToolsFocused() === false) this.menu.devtoolsReloaderUnlisten()
    }, 150)
    })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants