From a4386e4844dbb85b804770d936b2d47c7584d258 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Thu, 1 Jul 2021 23:38:09 +0200 Subject: wip --- Samples/common/src/SampleBaseForEditor.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Samples/common/src/SampleBaseForEditor.cs') diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs index 54ad8777..6c6b60b8 100644 --- a/Samples/common/src/SampleBaseForEditor.cs +++ b/Samples/common/src/SampleBaseForEditor.cs @@ -101,13 +101,23 @@ namespace Samples public bool DebugLogToFile { get => Configuration.Global.Get (nameof(DebugLogToFile)); set { - if (DebugLogToFile != value) + if (DebugLogToFile == value) return; Configuration.Global.Set (nameof(DebugLogToFile), value); NotifyValueChanged(DebugLogToFile); DbgLogger.ConsoleOutput = !value; } } + public string DebugLogFilePath { + get => Configuration.Global.Get (nameof (DebugLogFilePath)); + set { + if (CurrentFile == value) + return; + Configuration.Global.Set (nameof (DebugLogFilePath), value); + NotifyValueChanged (DebugLogFilePath); + } + } + protected static void initDebugLog () { DbgLogger.IncludeEvents = DbgEvtType.None; DbgLogger.DiscardEvents = DbgEvtType.All; @@ -279,6 +289,8 @@ namespace Samples } public void goUpDirClick (object sender, MouseButtonEventArgs e) { + if (string.IsNullOrEmpty (CurrentDir)) + return; string root = Directory.GetDirectoryRoot (CurrentDir); if (CurrentDir == root) return; -- cgit v1.3.1-4-g156e