xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.71k stars 95 forks source link

opt: don't focus on the main window if word comes from headword dialog #1933

Closed shenlebantongying closed 1 week ago

shenlebantongying commented 1 week ago

fix https://github.com/xiaoyifang/goldendict-ng/issues/1323

Note that this focus stealing exists for a decade. Honestly cannot tell if it is a feature or misdesign 😅

As of now, I think it is a misdesign, because the dialog is a tall narrow window, it don't cover the article display area (probably only because today's computer monitor is larger than a decade ago).

https://github.com/xiaoyifang/goldendict-ng/commit/46298a842cead991e271535105db546f80f88eba#diff-5672b26c3952a17c577362e80c313b2d937da7cdf2d4e4a91bba90e68ed855ccR3513

Related change

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud