mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 11:36:45 +00:00
fix config saving bug
This commit is contained in:
@@ -4,8 +4,8 @@ config:
|
|||||||
create: true
|
create: true
|
||||||
dotpath: dotfiles
|
dotpath: dotfiles
|
||||||
keepdot: false
|
keepdot: false
|
||||||
longkey: false
|
|
||||||
link_on_import: nolink
|
|
||||||
link_dotfile_default: nolink
|
link_dotfile_default: nolink
|
||||||
|
link_on_import: nolink
|
||||||
|
longkey: false
|
||||||
dotfiles:
|
dotfiles:
|
||||||
profiles:
|
profiles:
|
||||||
|
|||||||
@@ -717,10 +717,10 @@ class CfgYaml:
|
|||||||
newv = v
|
newv = v
|
||||||
if isinstance(v, dict):
|
if isinstance(v, dict):
|
||||||
newv = self._clear_none(v)
|
newv = self._clear_none(v)
|
||||||
|
if not newv:
|
||||||
|
continue
|
||||||
if newv is None:
|
if newv is None:
|
||||||
continue
|
continue
|
||||||
if not newv:
|
|
||||||
continue
|
|
||||||
new[k] = newv
|
new[k] = newv
|
||||||
return new
|
return new
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user