mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added initial prompt for name
This commit is contained in:
parent
fd0033e1c0
commit
1316026999
@ -78,6 +78,13 @@ def setup():
|
||||
pass
|
||||
|
||||
|
||||
if settings.get_settings("NAME") is None:
|
||||
print("Please enter your name. This will be displayed e.g. when comparing your charts to another user. Leave this empty if you would not like to specify a name right now.")
|
||||
name = input()
|
||||
if name == "": name = "Generic Maloja User"
|
||||
settings.update_settings("settings/settings.ini",{"NAME":name},create_new=True)
|
||||
|
||||
|
||||
def getInstance():
|
||||
try:
|
||||
output = subprocess.check_output(["pidof","Maloja"])
|
||||
|
@ -51,7 +51,7 @@ SCROBBLES_GOLD = 250
|
||||
SCROBBLES_PLATINUM = 500
|
||||
SCROBBLES_DIAMOND = 1000
|
||||
# name for comparisons
|
||||
NAME = "Generic Maloja User"
|
||||
NAME = None
|
||||
|
||||
[Misc]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user