question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nw2: Window.setBadgeLabel and Window.setProgressBar are not working

See original GitHub issue

NWJS Version : 0.44.6, 0.45.4 Operating System : Windows 10 x64

Expected behavior

methods must work as expected

Actual behavior

methods are not working and there is an error in console:

Unchecked runtime.lastError: The context from which the function was called did not have an associated app

How to reproduce

  1. run nw.js and show console
  2. enter commands:
var w = nw.Window.get()
w.setBadgeLabel('12');
w.setProgressBar(0.5)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
rogerwangcommented, Oct 4, 2020

This is fixed in git and will be available in the next nightly build.

1reaction
Viriuscommented, May 8, 2020

@DimPaDev Where did you see that functions work only on ubuntu? These notes in documentation applies only to the Linux family. On Windows and MacOS, these methods worked perfectly in the old mode without nw2. The problem is in nw2 mode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Progress bar will not work correctly if add more than one ...
As far as I can make out from the code you've posted, the problem appears to be that you are not managing the...
Read more >
Form GUI Progress Bar Not Working Properly
The progress bar in the first phase is the one not working. The progress bar in the second phase works, it just needs...
Read more >
Progressbar in script UI problem - Adobe Support Community
Solved: Hi friends I´m trying to add a window with a simple progress bar. But I´m having 2 problems. To better explain I...
Read more >
Card Window Progress Bars in FileMaker Pro - YouTube
Brought to you by https://www.filemakermagazine.comIn this video I provide you with the details about how to use a Card Window for showing ......
Read more >
Function ProgressOn - AutoIt
Creates a customizable progress bar window. ProgressOn ( "title", "maintext" [ ... opt, [optional] Default is 'always on top/with title/not moveable'
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found