From: Jiyun Yang Date: Fri, 6 Nov 2020 09:44:03 +0000 (+0900) Subject: [NUI] Do not make error message when the profile theme file is not found (#2188) X-Git-Tag: submit/tizen_6.0/20201112.181530~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=50cae70c71c9dc7e85af4f4476d106d01afbb3f2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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 --- 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);