cleaning up gopher setting
parent
5b16817f50
commit
f1f6f03e08
|
@ -443,6 +443,7 @@ def setup():
|
||||||
#redraw('opting into gopher: ' + str(SETTINGS['gopher']))
|
#redraw('opting into gopher: ' + str(SETTINGS['gopher']))
|
||||||
# TODO for now i'm hardcoding where people's gopher stuff is generated. if
|
# TODO for now i'm hardcoding where people's gopher stuff is generated. if
|
||||||
# there is demand for this to be configurable we can expose that.
|
# there is demand for this to be configurable we can expose that.
|
||||||
|
if SETTINGS.get("gopher"):
|
||||||
gopher.setup_gopher('feels')
|
gopher.setup_gopher('feels')
|
||||||
redraw("gopher publishing set to "+str(SETTINGS.get("gopher")))
|
redraw("gopher publishing set to "+str(SETTINGS.get("gopher")))
|
||||||
save_settings()
|
save_settings()
|
||||||
|
@ -1167,8 +1168,11 @@ def update_version():
|
||||||
|
|
||||||
""")
|
""")
|
||||||
SETTINGS.update({'gopher': gopher.select_gopher()})
|
SETTINGS.update({'gopher': gopher.select_gopher()})
|
||||||
|
if SETTINGS.get('gopher'):
|
||||||
print("opting into gopher: " + str(SETTINGS['gopher']))
|
print("opting into gopher: " + str(SETTINGS['gopher']))
|
||||||
gopher.setup_gopher('feels')
|
gopher.setup_gopher('feels')
|
||||||
|
else:
|
||||||
|
print("okay, passing on gopher for now. this option is available in settings if you change\nyour mind!")
|
||||||
|
|
||||||
# increment user versionfile
|
# increment user versionfile
|
||||||
open(versionFile, "w").write(__version__)
|
open(versionFile, "w").write(__version__)
|
||||||
|
@ -1218,6 +1222,7 @@ version 0.9.3 features:
|
||||||
""".lstrip())
|
""".lstrip())
|
||||||
#if userVersion[0:5] < "0.10.1":
|
#if userVersion[0:5] < "0.10.1":
|
||||||
# todo: write a better updating function
|
# todo: write a better updating function
|
||||||
|
'''
|
||||||
if 1:
|
if 1:
|
||||||
# version 0.10.1 patch notes
|
# version 0.10.1 patch notes
|
||||||
print("""
|
print("""
|
||||||
|
@ -1226,8 +1231,10 @@ version 0.9.3 features:
|
||||||
* thanks to help from ~vilmibm, ttbp now supports publishing to gopher!
|
* thanks to help from ~vilmibm, ttbp now supports publishing to gopher!
|
||||||
* if you enable gopher publishing, feels will automatically publish to
|
* if you enable gopher publishing, feels will automatically publish to
|
||||||
gopher://tilde.town/1/~{user}/feels
|
gopher://tilde.town/1/~{user}/feels
|
||||||
|
* if you don't know what gopher is, it's fine to opt-out; ask around on
|
||||||
|
irc if you'd like to learn more!
|
||||||
|
* the settings menu has been reworked to be less clunky
|
||||||
""".lstrip())
|
""".lstrip())
|
||||||
'''
|
|
||||||
|
|
||||||
#####
|
#####
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue