trialuser02 / qt6ct

Qt6 Configuration Tool
BSD 2-Clause "Simplified" License
128 stars 10 forks source link

Font changes not saved in configuration file #25

Open PeterBBBBB opened 1 year ago

PeterBBBBB commented 1 year ago

On both Debian & Arch, font changes made in qt6ct gui are not saved on exit. Restarting qt6ct, the original font definition is still there. This relates to .config/qt6ct/qt6ct.conf not fonts.conf

Maybe a recent regression (0.7?) as I'm sure this used to work fine

PeterBBBBB commented 1 year ago

Not a recent regression, same issue with 0.6. Can't build 0.5 with current Qt6 libraries.

PeterBBBBB commented 1 year ago

Problem seems intermittent. If [OK] is pressed after the font change, it is usually saved. However, if [Apply] is pressed first, it is usually lost.

trialuser02 commented 1 year ago

I'm unable to reproduce (manjaro + gnome + wayland). Please, provide your qt6ct.conf and "export" output.

PeterBBBBB commented 1 year ago

I guess you meant unable to reproduce... ;-) I'm using Xfce with Xorg. I've noticed that font settings are saved after hitting [Apply], but the changes are then overwritten on hitting [OK] after waiting a few seconds (for the change to appear on screen). If qt6ct is closed, after hitting [Apply], or if [OK] hit immediately, the new settings are preserved.

output.txt

qt6ct.conf.txt

trialuser02 commented 1 year ago

Try latest version from git. Looks like it works fine with your config.

PeterBBBBB commented 1 year ago

I'm still seeing the problem with latest git. Around 3 seconds after hitting [Apply], the font settings in the dialog are reverted (and that is what is saved on exit)

trialuser02 commented 1 year ago

For test purposes try to disable all style sheets.

PeterBBBBB commented 1 year ago

Well done! Disabling 'Sytle Sheets' fixes the problem

PeterBBBBB commented 1 year ago

I have tested version 0.8 on Debian and Arch, and with a style sheet enabled, the bug is still there.