Add search history preference (#193)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-11-06 18:07:21 -05:00
1 parent 91be37fd8a
commit 4c32243e6e
13 files changed
+78 -19

No files matched your search

@@ -1,5 +1,5 @@
import "pkg:/components/Dialog/DialogUtils.bs"
import "pkg:/source/services/SearchHistory.bs"
import "pkg:/components/Services/SearchHistory/SearchHistoryUtils.bs"
import "pkg:/source/utils/FocusManagement.bs"
function Init()
@@ -21,6 +21,6 @@ function BindPreference(preferences as object, key as string)
end function
function OnButtonSelected()
SearchHistory.Clear()
SearchHistoryUtils.Clear()
DialogUtils.ShowDialog("Search history cleared.", "Success")
end function