MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / toggleAutorun

Method toggleAutorun

plugins/Trayicon/TrayiconPlugin.py:165–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 return translate
164
165 def toggleAutorun(self):
166 if self.isAutorunEnabled():
167 os.unlink(self.getAutorunPath())
168 else:
169 open(self.getAutorunPath(), "w").write(self.formatAutorun())

Callers

nothing calls this directly

Calls 4

isAutorunEnabledMethod · 0.95
getAutorunPathMethod · 0.95
formatAutorunMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected