mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 13:35:31 +02:00
[PowerRename] Cleanup and fix for renaming to empty string (#19691)
* Add UI items using OnItemAdded callback * Simplify ToggleAll() logic * Simplify items' Checkbox logic * Do not allow renaming to empty string * Simplify ShowAll/ShowRenamed logic * Simplify rename button logic
This commit is contained in:
@@ -88,7 +88,6 @@ namespace winrt::PowerRenameUI::implementation
|
||||
void AppendSearchMRU(hstring const& value);
|
||||
void AppendReplaceMRU(hstring const& value);
|
||||
|
||||
void Checked_ids(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e);
|
||||
void SelectAll(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e);
|
||||
void ShowAll(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e);
|
||||
void ShowRenamed(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::UI::Xaml::RoutedEventArgs const& e);
|
||||
@@ -97,7 +96,6 @@ namespace winrt::PowerRenameUI::implementation
|
||||
bool m_allSelected;
|
||||
PowerRenameUI::UIUpdates m_uiUpdatesItem;
|
||||
inline PowerRenameUI::ExplorerItem FindById(int32_t id);
|
||||
void ToggleAll(bool checked);
|
||||
|
||||
winrt::Windows::Foundation::Collections::IObservableVector<hstring> m_searchMRUList;
|
||||
winrt::Windows::Foundation::Collections::IObservableVector<hstring> m_replaceMRUList;
|
||||
|
||||
Reference in New Issue
Block a user