Skip to content

Commit

Permalink
chore: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
philhartung committed Mar 7, 2025
1 parent 706f74a commit 931df48
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ win:
icon: "icon/icon.png"
target:
- target: msi
oneClick: false
arch: [x64]
- target: zip
arch: [x64]
Expand Down
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ function createMainWindow() {
function handleIpcMessage(message) {
switch (message.type) {
case "update":
updateSystem();
sendMessage("updatePersistentData", persistentData);
updateSystem();
sdpProcess.send({ type: "update" });
break;
case "setAudioInterface":
setAudioInterface(message.data);
Expand Down
5 changes: 3 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ export const searchStreams = () => {
.toLowerCase()
.includes(search.value.streams.toLowerCase()) ||
stream.id.includes(search.value.streams)) &&
stream.isSupported) ||
!persistentData.value.settings.hideUnsupported
(stream.isSupported || !persistentData.value.settings.hideUnsupported)
)

);
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/StreamPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
selectedStream.media[0].tsRefClocks[0].clksrcExt.toUpperCase()
}}</span>
</li>
<li>
<li v-if="selectedStream.isSupported">
<b>Format</b><br />
<span class="copy"
>{{ selectedStream.channels }} channel @
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/StreamsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</option>
</template>
</select>
<span v-else>{{ stream.unsupportedReason }}</span>
<small v-else class="d-inline-flex px-2 py-1 fw-semibold text-danger-emphasis bg-danger-subtle border border-danger-subtle rounded-2">{{ stream.unsupportedReason }}</small>
</td>
<td>
<button
Expand Down
3 changes: 3 additions & 0 deletions src/lib/sdp.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ process.on("message", (message) => {
case "interface":
setNetworkInterface(message.data);
break;
case "update":
sendUpdate();
break;
}
});

Expand Down

0 comments on commit 931df48

Please sign in to comment.