Skip to content

Commit

Permalink
Merge pull request #104 from one-click-studio/96-obs-source-name-igno…
Browse files Browse the repository at this point in the history
…re-after-char

Refactor source name comparison logic in Gabin class
  • Loading branch information
tillderoquefeuil authored Feb 8, 2024
2 parents 822eaa6 + d8967f9 commit 12ae5e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/modules/gabin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ export class Gabin {
for (const scene of this.scenes) {
for (const container of scene.containers) {
for (const source of container.sources) {
if (source.name === sourceName) {
const sourceNameShort = source.name.split('##')[0].trim()
if (sourceNameShort === sourceName) {
this.triggeredShot$.next(source)
return
}
Expand Down

0 comments on commit 12ae5e7

Please sign in to comment.