Skip to content

Commit 9e22a35

Browse files
committed
fix the error with extension tab not working because of the previous commit
1 parent 58cc03e commit 9e22a35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/shared.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@
9797
"outdir_save",
9898
}
9999

100-
if cmd_opts.share or cmd_opts.listen:
101-
cmd_opts.disable_extension_access = True
100+
cmd_opts.disable_extension_access = cmd_opts.share or cmd_opts.listen
102101

103102
devices.device, devices.device_interrogate, devices.device_gfpgan, devices.device_swinir, devices.device_esrgan, devices.device_scunet, devices.device_codeformer = \
104103
(devices.cpu if any(y in cmd_opts.use_cpu for y in [x, 'all']) else devices.get_optimal_device() for x in ['sd', 'interrogate', 'gfpgan', 'swinir', 'esrgan', 'scunet', 'codeformer'])

0 commit comments

Comments
 (0)