NWjs On Dialog OK or Cancel not working

Bugs will be moved here once resolved.

Post » Thu Jul 27, 2017 5:26 am

Problem Description
When in full NWjs export (works fine in preview), if you open a dialog box (save or open) and then do a "on dialog cancel or OK", that trigger will never be called in the export.

Attach a Capx
https://dl.dropboxusercontent.com/u/28104568/NW%20Bug.capx
(this requires you to export a nwjs build to work; win32 tested)

Description of Capx
Single button that opens save dialog. Clicking cancel should cause the browser to close. You must export this to NW (it will work fine in preview)

Steps to Reproduce Bug
    Add button to click to open NW save dialog
    Add trigger of NWjs on "save dialog CANCEL" and add browser close action

Observed Result
The trigger isn't being called - no matter what you put in the "on save CANCEL". This also happens on "save OK"

Expected Result
The event should work outside of preview.

Affected Browsers
    NW: No (nw specific)
Operating System and Service Pack
Windows 10 Pro

Construct 2 Version ID
C2 Personal stable (244)
Most recent C2 NWjs
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Thu Jul 27, 2017 5:07 pm

UPDATE: Problem found - it was script mini-fication.
B
40
S
12
G
1
Posts: 532
Reputation: 4,147

Post » Fri Sep 15, 2017 2:29 pm

.capx link no longer available, so closing. I added some extra code to avoid minifying the cancel trigger code for the next build just in case.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests