Add patterned rename and Move to, and keep settings, selection, and queue speed from resetting.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
11
src/Explorer.App/Settings/SettingsPageContext.cs
Normal file
11
src/Explorer.App/Settings/SettingsPageContext.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace Explorer.App.Settings;
|
||||
|
||||
internal static class SettingsPageContext
|
||||
{
|
||||
public static SettingsDraft? DraftOf(FrameworkElement page)
|
||||
=> page.DataContext as SettingsDraft
|
||||
?? (page.DataContext as SettingsShell)?.Draft
|
||||
?? (Window.GetWindow(page) as SettingsWindow)?.Draft;
|
||||
}
|
||||
Reference in New Issue
Block a user