Skip to content

Commit 0e5e80a

Browse files
committed
disable classic webcam if go2rtc plugin installed
1 parent a31482c commit 0e5e80a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

OctoPrint Setup.iss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,13 @@ begin
418418
if Pos('go2rtc', ANSIStr) = 0 then
419419
begin
420420
ANSIStr := ANSIStr + #13#10 + 'plugins:';
421+
ANSIStr := ANSIStr + #13#10 + ' _disabled:';
422+
ANSIStr := ANSIStr + #13#10 + ' - classicwebcam';
421423
ANSIStr := ANSIStr + #13#10 + ' go2rtc:';
424+
ANSIStr := ANSIStr + #13#10 + ' server_url: http://' + ip_address_list[go2rtcSelectIP.SelectedValueIndex] + ':1984';
425+
ANSIStr := ANSIStr + #13#10 + ' is_valid_url: true';
426+
SaveStringToFile(ExpandConstant(OctoPrintBasedir + '\config.yaml'), ANSIStr, False);
422427
end;
423-
ANSIStr := ANSIStr + #13#10 + ' server_url: http://' + ip_address_list[go2rtcSelectIP.SelectedValueIndex] + ':1984';
424-
ANSIStr := ANSIStr + #13#10 + ' is_valid_url: true';
425-
SaveStringToFile(ExpandConstant(OctoPrintBasedir + '\config.yaml'), ANSIStr, False);
426428
end;
427429
end;
428430

0 commit comments

Comments
 (0)