mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 08:06:33 +00:00
fixes
This commit is contained in:
parent
1b691949a3
commit
893c0fcc5c
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.3.0] - 2021-06-10
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- [macOS] Pause on Mic/Camera
|
||||||
|
|
||||||
## [1.2.0] - 2021-06-01
|
## [1.2.0] - 2021-06-01
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -32,17 +32,17 @@ export class InputDevicesStatus {
|
|||||||
|
|
||||||
static update() {
|
static update() {
|
||||||
// TODO: Update electron version as soon as issue is resolved https://github.com/electron/electron/issues/26143
|
// TODO: Update electron version as soon as issue is resolved https://github.com/electron/electron/issues/26143
|
||||||
isMicrophoneActive().then((result) => (this.status.mic = result))
|
isMicrophoneActive().then((result) => (InputDevicesStatus.status.mic = result))
|
||||||
isCameraActive().then((result) => (this.status.camera = result))
|
isCameraActive().then((result) => (InputDevicesStatus.status.camera = result))
|
||||||
}
|
}
|
||||||
|
|
||||||
static init() {
|
static init() {
|
||||||
setInterval(this.update, 3000)
|
setInterval(InputDevicesStatus.update, 2000)
|
||||||
}
|
}
|
||||||
|
|
||||||
static areCameraOrMicrophoneActive(): boolean {
|
static areCameraOrMicrophoneActive(): boolean {
|
||||||
if (Settings.load('skipOnCameraOrMic')) {
|
if (Settings.load('skipOnCameraOrMic')) {
|
||||||
return this.status.mic || this.status.camera
|
return InputDevicesStatus.status.mic || InputDevicesStatus.status.camera
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user