Skip to content

Commit e21428f

Browse files
committed
Convert variable type for comparison
1 parent 26bd675 commit e21428f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/hotspot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def manage_hotspot(hotspot, usersettings, midiports, first_run=False):
3333
if is_hotspot_active(usersettings):
3434
disconnect_from_wifi(hotspot, usersettings)
3535
return
36-
elif usersettings.get_setting_value("reinitialize_network_on_boot") == 1:
36+
elif int(usersettings.get_setting_value("reinitialize_network_on_boot")) == 1:
3737
try:
3838
print("Running disable_ap.sh")
3939
subprocess.Popen(['sudo', './disable_ap.sh'], stdout=subprocess.DEVNULL,

0 commit comments

Comments
 (0)