Merge branch 'yangjie' of https://gitea.23544.com/marking/WGShare.Client.Electron into yangjie
This commit is contained in:
commit
7020974f1a
5
main.js
5
main.js
|
|
@ -113,11 +113,6 @@ function createWindow() {
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
}
|
}
|
||||||
const additionalData = { myKey: 'myValue' }
|
const additionalData = { myKey: 'myValue' }
|
||||||
// 退出房间
|
|
||||||
app.on('will-quit', async (event) => {
|
|
||||||
await mainWindow.webContents.send('quitAndInstall');
|
|
||||||
});
|
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
const gotTheLock = app.requestSingleInstanceLock(additionalData)
|
const gotTheLock = app.requestSingleInstanceLock(additionalData)
|
||||||
if (gotTheLock) {
|
if (gotTheLock) {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
|
||||||
}
|
}
|
||||||
setJoinRoomSettingForm((res: any) => {
|
setJoinRoomSettingForm((res: any) => {
|
||||||
res.forEach((item: any, index: number) => {
|
res.forEach((item: any, index: number) => {
|
||||||
if (index === 0) {
|
if (index === 0 && role.ID.includes(user.roleId)) {
|
||||||
agora.getAudioMediaList().then(res => {
|
agora.getAudioMediaList().then(res => {
|
||||||
item.active = res.ecordingList.length ? true : false
|
item.active = res.ecordingList.length ? true : false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -355,6 +355,13 @@ const Meeting: React.FC = () => {
|
||||||
time: changeCurrentSeconds(),
|
time: changeCurrentSeconds(),
|
||||||
});
|
});
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
// 首次加载图标更新
|
||||||
|
const firstFooterList = [...footerList]
|
||||||
|
firstFooterList[0][0].title = state.enableMicr ? '静音' : '解除静音'
|
||||||
|
firstFooterList[0][0].active = !state.enableMicr
|
||||||
|
firstFooterList[0][1].title = state.enableCamera ? '关闭视频' : '开启视频'
|
||||||
|
firstFooterList[0][1].active = !state.enableCamera
|
||||||
|
setFooterList(firstFooterList)
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const setting = await JSON.parse(storage.getItem('setting') as string);
|
const setting = await JSON.parse(storage.getItem('setting') as string);
|
||||||
const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string);
|
const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue