Skip to content
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

Opens extra incognito window after 1st run #701

Open
wang-henry4 opened this issue Jun 7, 2021 · 1 comment
Open

Opens extra incognito window after 1st run #701

wang-henry4 opened this issue Jun 7, 2021 · 1 comment

Comments

@wang-henry4
Copy link

wang-henry4 commented Jun 7, 2021

I'm new to Flexx but I couldn't find any information on this problem so apologies if it has been solved already.
I am currently running the example apps for the desktop with the following code.

from flexx import flx
class Example(flx.Widget):

    def init(self):
        flx.Button(text='hello')
        flx.Button(text='world')
app = flx.App(Example)
app.launch('app')
flx.run()

It works fine the first time it is run, however after closing the window and running again it always starts an extra incognito window along with the app itself. After doing some digging it seems if I open the app in browser mode chrome will have a notification that the previous tabs were not closed properly and ask if I want to restore them. The problem is solved by dismissing that notification and running the app again in desktop mode, but will appear again if I close and relaunch.

I am using python 3.7 and Chrome for the browser.

@almarklein
Copy link
Member

I can indeed reproduce this (using app.launch('chrome-app') to avoid it creating a FF app). This is odd. I don't have a solution at hand.

The real issue is in webruntime by the way ... somewhere around here: https://github.com/flexxui/webruntime/blob/master/webruntime/_chrome.py#L104

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

No branches or pull requests

2 participants