From 50cae70c71c9dc7e85af4f4476d106d01afbb3f2 Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Fri, 6 Nov 2020 18:44:03 +0900 Subject: [PATCH] [NUI] Do not make error message when the profile theme file is not found (#2188) In some profile, not all 3 theme files exists. So the patch checks file existance not to make error messages. Signed-off-by: Jiyun Yang --- src/Tizen.NUI/src/public/Theme/ThemeManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Tizen.NUI/src/public/Theme/ThemeManager.cs b/src/Tizen.NUI/src/public/Theme/ThemeManager.cs index 1192cb1..239b57b 100644 --- a/src/Tizen.NUI/src/public/Theme/ThemeManager.cs +++ b/src/Tizen.NUI/src/public/Theme/ThemeManager.cs @@ -19,6 +19,7 @@ using TizenSystemInformation.Tizen.System; using System; using System.Collections.Generic; using System.ComponentModel; +using System.IO; using Tizen.NUI.Xaml; using Tizen.NUI.BaseComponents; @@ -305,6 +306,12 @@ namespace Tizen.NUI { string path = StyleManager.FrameworkResourcePath + "/Theme/" + project + "_" + id + ".xaml"; + if (!File.Exists(path)) + { + Tizen.Log.Info("NUI", $"\"{path}\" is not found in this profile.\n"); + continue; + } + try { loaded.Merge(path); -- 2.7.4