mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[FancyZones][Bug Fix] Layout hotkey show bug and update file bug (#37902)
fix Layout hotkey show bug and update file bug Co-authored-by: Zhaopeng Wang <zhaopengwang@microsoft.com>
This commit is contained in:
@@ -491,6 +491,8 @@ namespace FancyZonesEditor
|
|||||||
App.FancyZonesEditorIO.SerializeAppliedLayouts();
|
App.FancyZonesEditorIO.SerializeAppliedLayouts();
|
||||||
App.FancyZonesEditorIO.SerializeCustomLayouts();
|
App.FancyZonesEditorIO.SerializeCustomLayouts();
|
||||||
App.FancyZonesEditorIO.SerializeDefaultLayouts();
|
App.FancyZonesEditorIO.SerializeDefaultLayouts();
|
||||||
|
App.FancyZonesEditorIO.SerializeLayoutHotkeys();
|
||||||
|
App.FancyZonesEditorIO.SerializeLayoutTemplates();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -328,12 +328,16 @@ namespace FancyZonesEditor.Models
|
|||||||
// Removes this Layout from the registry and the loaded CustomModels list
|
// Removes this Layout from the registry and the loaded CustomModels list
|
||||||
public void Delete()
|
public void Delete()
|
||||||
{
|
{
|
||||||
|
var customModels = MainWindowSettingsModel.CustomModels;
|
||||||
if (_quickKey != -1)
|
if (_quickKey != -1)
|
||||||
{
|
{
|
||||||
MainWindowSettingsModel.LayoutHotkeys.FreeKey(QuickKey);
|
MainWindowSettingsModel.LayoutHotkeys.FreeKey(QuickKey);
|
||||||
|
foreach (var module in customModels)
|
||||||
|
{
|
||||||
|
module.FirePropertyChanged(nameof(QuickKeysAvailable));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var customModels = MainWindowSettingsModel.CustomModels;
|
|
||||||
int i = customModels.IndexOf(this);
|
int i = customModels.IndexOf(this);
|
||||||
if (i != -1)
|
if (i != -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user