xnview config file always rewrites after open-close

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
forklab
Posts: 40
Joined: Tue Mar 02, 2021 7:27 pm

xnview config file always rewrites after open-close

Post by forklab »

If history and sessions records are disabled then just opening and closing xnview mp runs config rewrite process at which section [Format] always changes - file extensions just tosses in a new way each time and config saved.

1) this is abnormal because no parameters changed so no write operations needed
2) no need to toss extensions each time
3) if system crash or something happens at write moment then it is high possibility of losing config

example:

Code: Select all

[Format]
archive=rar 7z arj gz zip tar tgz
audio=mp+ mpp au rmi mp2 wma asx ogg aif snd mp3 mpc flac mid wav
avi=vob divx wmv avi asf vfw
mpeg=m4a mts mpa m2v mpe m1v m2ts m4v mpm m1s mp4 mpeg mpg
ps=svgz epsf svg eps ai pdf ps
qt=mov 3g2 3gp2 qt 3gp
text=txt cpp gcode xmp cc php h pas js css c c++ ini
video=mkv rm webm aae flv
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview config file always rewrites after open-close

Post by xnview »

xnview config file is always rewritten at exit
Pierre.
forklab
Posts: 40
Joined: Tue Mar 02, 2021 7:27 pm

Re: xnview config file always rewrites after open-close

Post by forklab »

Why if there is no changes in settings?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview config file always rewrites after open-close

Post by xnview »

geometry of dialog
Pierre.
forklab
Posts: 40
Joined: Tue Mar 02, 2021 7:27 pm

Re: xnview config file always rewrites after open-close

Post by forklab »

What geometry of dialog?
Program opened, program closed. Nothing changed, no geometry, no parameters, no x-y-width-height of any dialogs/windows. ini is rewritten. Each open-close. :bug: :bug: :bug:
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview config file always rewrites after open-close

Post by xnview »

it's not a bug, Qt always sync settings at exit
Pierre.
Post Reply