mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[FancyZones Editor] Logger (#13928)
This commit is contained in:
@@ -6,6 +6,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using FancyZonesEditor.Logs;
|
||||
using FancyZonesEditor.Models;
|
||||
|
||||
namespace FancyZonesEditor
|
||||
@@ -134,6 +135,8 @@ namespace FancyZonesEditor
|
||||
|
||||
public void Show()
|
||||
{
|
||||
Logger.LogTrace();
|
||||
|
||||
var mainWindowSettings = ((App)Application.Current).MainWindowSettings;
|
||||
if (_layoutPreview != null)
|
||||
{
|
||||
@@ -154,6 +157,8 @@ namespace FancyZonesEditor
|
||||
|
||||
public void ShowLayout()
|
||||
{
|
||||
Logger.LogTrace();
|
||||
|
||||
MainWindowSettingsModel settings = ((App)Application.Current).MainWindowSettings;
|
||||
CurrentDataContext = settings.UpdateSelectedLayoutModel();
|
||||
|
||||
@@ -201,6 +206,8 @@ namespace FancyZonesEditor
|
||||
|
||||
public void OpenEditor(LayoutModel model)
|
||||
{
|
||||
Logger.LogTrace();
|
||||
|
||||
_layoutPreview = null;
|
||||
if (CurrentDataContext is GridLayoutModel)
|
||||
{
|
||||
@@ -229,6 +236,8 @@ namespace FancyZonesEditor
|
||||
|
||||
public void CloseEditor()
|
||||
{
|
||||
Logger.LogTrace();
|
||||
|
||||
var mainWindowSettings = ((App)Application.Current).MainWindowSettings;
|
||||
|
||||
_editorLayout = null;
|
||||
|
||||
Reference in New Issue
Block a user