solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.3k stars 113 forks source link

[BUG] Tool panels and other settings reset on close #225

Open PROPHESSOR opened 6 months ago

PROPHESSOR commented 6 months ago

All settings made in View menu reset when you close the editor (tool panels, bytes per line, bytes per group, etc) even when you click on "Save current view as default".

image

solemnwarning commented 6 months ago

What OS are you running it on? Saving the defaults works fine for me (it creates a ~/.REHex file on Linux on exit).

PROPHESSOR commented 5 months ago

@solemnwarning Linux Mint 21.2 x86_64 Cinnamon The file ~/.REHex exists and has the following content:

last-directory=/home/prophessor
preferred-asm-syntax=1
goto-offset-base=0
[default-view]
[default-view/vtools]
[default-view/vtools/panels]
[default-view/vtools/panels/0]
[default-view/vtools/panels/0/tab]
[default-view/vtools/panels/0/tab/0]
name=DecodePanel
selected=1
big-endian=0
[default-view/vtools/panels/0/tab/1]
name=CommentTree
selected=0
[recent-files]
file1=/home/prophessor/test.bin
file2=
file3=
file4=
file5=
file6=
file7=
file8=
file9=

But I still need to add all the panels each time I run REHex (all comments in the file are load correctly)

solemnwarning commented 3 months ago

Seems to work fine for me using the Ubuntu package on a Linux Mint live CD.