Skip to content

Commit 931df48

Browse files
committed
chore: minor improvements
1 parent 706f74a commit 931df48

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

electron-builder.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ win:
1616
icon: "icon/icon.png"
1717
target:
1818
- target: msi
19+
oneClick: false
1920
arch: [x64]
2021
- target: zip
2122
arch: [x64]

main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ function createMainWindow() {
8989
function handleIpcMessage(message) {
9090
switch (message.type) {
9191
case "update":
92-
updateSystem();
9392
sendMessage("updatePersistentData", persistentData);
93+
updateSystem();
94+
sdpProcess.send({ type: "update" });
9495
break;
9596
case "setAudioInterface":
9697
setAudioInterface(message.data);

src/app.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ export const searchStreams = () => {
9999
.toLowerCase()
100100
.includes(search.value.streams.toLowerCase()) ||
101101
stream.id.includes(search.value.streams)) &&
102-
stream.isSupported) ||
103-
!persistentData.value.settings.hideUnsupported
102+
(stream.isSupported || !persistentData.value.settings.hideUnsupported)
103+
)
104+
104105
);
105106
});
106107

src/components/pages/StreamPage.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
selectedStream.media[0].tsRefClocks[0].clksrcExt.toUpperCase()
2323
}}</span>
2424
</li>
25-
<li>
25+
<li v-if="selectedStream.isSupported">
2626
<b>Format</b><br />
2727
<span class="copy"
2828
>{{ selectedStream.channels }} channel @

src/components/pages/StreamsPage.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
</option>
9090
</template>
9191
</select>
92-
<span v-else>{{ stream.unsupportedReason }}</span>
92+
<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>
9393
</td>
9494
<td>
9595
<button

src/lib/sdp.js

+3
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ process.on("message", (message) => {
301301
case "interface":
302302
setNetworkInterface(message.data);
303303
break;
304+
case "update":
305+
sendUpdate();
306+
break;
304307
}
305308
});
306309

0 commit comments

Comments
 (0)