|
|
@ -70,15 +70,14 @@ Ext.define('Rambox.Application', { |
|
|
|
'->' |
|
|
|
'->' |
|
|
|
,{ |
|
|
|
,{ |
|
|
|
xtype: 'label' |
|
|
|
xtype: 'label' |
|
|
|
,html: '<b>Rambox Pro needs permissions to use Microphone and Camera for the apps.</b>' |
|
|
|
,html: '<b>Rambox CE needs permissions to use Microphone and Camera for the apps.</b>' |
|
|
|
} |
|
|
|
} |
|
|
|
,{ |
|
|
|
,{ |
|
|
|
xtype: 'button' |
|
|
|
xtype: 'button' |
|
|
|
,text: 'Grant permissions' |
|
|
|
,text: 'Grant permissions' |
|
|
|
,ui: 'decline' |
|
|
|
,ui: 'decline' |
|
|
|
,handler: async function(btn) { |
|
|
|
,handler: async function(btn) { |
|
|
|
await require('electron').remote.systemPreferences.askForMediaAccess('microphone'); |
|
|
|
ipc.send('grantPermissions'); |
|
|
|
await require('electron').remote.systemPreferences.askForMediaAccess('camera'); |
|
|
|
|
|
|
|
Ext.cq1('app-main').removeDocked(btn.up('toolbar'), true); |
|
|
|
Ext.cq1('app-main').removeDocked(btn.up('toolbar'), true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|