summaryrefslogtreecommitdiff
path: root/xmake/core/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-28 19:53:50 +0800
committerruki <[email protected]>2019-10-28 19:53:50 +0800
commitf3702d9b8d278142fdce0426187b4f9503e43f55 (patch)
tree833659139e39c2574256fbb9904d8d9faee37be9 /xmake/core/main.lua
parent2f623aed782cd56f9cdd28e94e258c854cbfeab8 (diff)
fix set theme
Diffstat (limited to 'xmake/core/main.lua')
-rw-r--r--xmake/core/main.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index 7c0c75f3f..0183599e5 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -181,12 +181,10 @@ function main.entry()
end
-- load theme
- local theme_inst, errors = theme.load(global.get("theme") or "default")
- if not theme_inst then
- utils.error(errors)
- return -1
+ local theme_inst = theme.load(global.get("theme")) or theme.load("default")
+ if theme_inst then
+ colors.theme_set(theme_inst)
end
- colors.theme_set(theme_inst)
-- init option
ok, errors = option.init(menu)