Release v0.6.42: use compact pinned checkbox beside history search
This commit is contained in:
@@ -113,8 +113,8 @@ int main() {
|
||||
until([&]{history.reload();return history.entries().front().pinned;},"resident pin mutation");
|
||||
require(history.entries().front().id==textId,"pin preserves history identity");
|
||||
auto filter=[&](HWND window,int index) {
|
||||
send(GetDlgItem(window,117),CB_SETCURSEL,index);
|
||||
send(window,WM_COMMAND,MAKEWPARAM(117,CBN_SELCHANGE),LPARAM(GetDlgItem(window,117)));
|
||||
auto checkbox=GetDlgItem(window,117);
|
||||
if(send(checkbox,BM_GETCHECK)!=(index ? BST_CHECKED : BST_UNCHECKED)) send(checkbox,BM_CLICK);
|
||||
};
|
||||
filter(w,1);
|
||||
until([&]{return send(GetDlgItem(w,102),LB_GETCOUNT)==1;},"pinned filter hides unpinned entries");
|
||||
@@ -129,7 +129,7 @@ int main() {
|
||||
send(w,WM_COMMAND,112);
|
||||
filter(w,1);
|
||||
close(w);w=open();
|
||||
require(send(GetDlgItem(w,117),CB_GETCURSEL)==1,"pinned filter survives helper restart");
|
||||
require(send(GetDlgItem(w,117),BM_GETCHECK)==BST_CHECKED,"pinned checkbox survives helper restart");
|
||||
wchar_t query[100]{};send(GetDlgItem(w,101),WM_GETTEXT,100,LPARAM(query));
|
||||
require(std::wstring(query)==L"History fixture 498","search survives helper restart");
|
||||
send(w,WM_COMMAND,114);
|
||||
|
||||
Reference in New Issue
Block a user