mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
anki: strip usernameFile and passwordFile contents
This commit is contained in:
parent
5468c92a23
commit
293d105993
1 changed files with 2 additions and 2 deletions
|
|
@ -174,9 +174,9 @@ in
|
|||
if username:
|
||||
aqt.mw.pm.set_sync_username(username)
|
||||
elif username_file and username_file.exists():
|
||||
aqt.mw.pm.set_sync_username(username_file.read_text())
|
||||
aqt.mw.pm.set_sync_username(username_file.read_text().strip())
|
||||
if key_file and key_file.exists():
|
||||
aqt.mw.pm.set_sync_key(key_file.read_text())
|
||||
aqt.mw.pm.set_sync_key(key_file.read_text().strip())
|
||||
|
||||
aqt.gui_hooks.profile_did_open.append(set_server)
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue