|
|
@ -485,7 +485,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
outputDevice: {
|
|
|
|
outputDevice: {
|
|
|
|
get() {
|
|
|
|
get() {
|
|
|
|
if (this.withoutAudioPrivilege === true) this.getAllOutputDevices();
|
|
|
|
|
|
|
|
const isValidDevice = this.allOutputDevices.find(
|
|
|
|
const isValidDevice = this.allOutputDevices.find(
|
|
|
|
device => device.deviceId === this.settings.outputDevice
|
|
|
|
device => device.deviceId === this.settings.outputDevice
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -679,9 +678,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.countDBSize('tracks');
|
|
|
|
this.countDBSize('tracks');
|
|
|
|
|
|
|
|
if (process.env.IS_ELECTRON) this.getAllOutputDevices();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
activated() {
|
|
|
|
activated() {
|
|
|
|
this.countDBSize('tracks');
|
|
|
|
this.countDBSize('tracks');
|
|
|
|
|
|
|
|
if (process.env.IS_ELECTRON) this.getAllOutputDevices();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
...mapActions(['showToast']),
|
|
|
|
...mapActions(['showToast']),
|
|
|
|