add logic to show network test dialog
This commit is contained in:
parent
3aee4f8f28
commit
3f4f411eb6
|
|
@ -62,6 +62,8 @@
|
|||
|
||||
watchPreferencesEvent(app);
|
||||
|
||||
watchNetworkTestEvent(app);
|
||||
|
||||
initializeStun(app);
|
||||
|
||||
operationalEvents(app);
|
||||
|
|
@ -77,6 +79,12 @@
|
|||
});
|
||||
}
|
||||
|
||||
function watchNetworkTestEvent(app) {
|
||||
context.JK.onBackendEvent(ALERT_NAMES.SHOW_NETWORK_TEST, 'everywhere', function() {
|
||||
app.layout.showDialog('network-test')
|
||||
});
|
||||
}
|
||||
|
||||
function checkMacOSXInstalledCorrectly() {
|
||||
var os = context.jamClient.GetOSAsString();
|
||||
// check if method exists at all for migration purposes
|
||||
|
|
|
|||
|
|
@ -139,7 +139,8 @@
|
|||
VIDEO_WINDOW_CLOSED :50,
|
||||
VST_CHANGED: 51, // VST state changed
|
||||
SAMPLERATE_CONFIGURATION_BAD: 52,
|
||||
LAST_ALERT : 53
|
||||
SHOW_NETWORK_TEST: 53,
|
||||
LAST_ALERT : 54
|
||||
}
|
||||
// recreate eThresholdType enum from MixerDialog.h
|
||||
context.JK.ALERT_TYPES = {
|
||||
|
|
@ -205,7 +206,8 @@
|
|||
50: {"title": "", "message": ""}, // VIDEO_WINDOW_CLOSED
|
||||
51: {"title": "", "message": ""}, // VST_CHANGED
|
||||
52: {"title": "", "message": ""}, // SAMPLERATE_CONFIGURATION_BAD
|
||||
53: {"title": "", "message": ""} // LAST_ALERT
|
||||
53: {"title": "", "message": ""}, // SHOW_NETWORK_TEST
|
||||
54: {"title": "", "message": ""} // LAST_ALERT
|
||||
};
|
||||
|
||||
// add the alert's name to the ALERT_TYPES structure
|
||||
|
|
|
|||
Loading…
Reference in New Issue