explorerplusplus
explorerplusplus copied to clipboard
Window size not saved/restored on relaunch
Describe the bug
config.xml like:
<Window X="145" Y="49" Width="1541" Height="823" ShowState="0" SelectedTab="0" TreeViewWidth="208" DisplayWindowWidth="300" DisplayWindowHeight="90">
Values are updated in the file, however on relaunch the values apparently are ignored. Always starts up at the same coords and window dimensions.
Using portable mode to dump settings. It was not working before with settings (presumably) stored in registry.
To Reproduce Steps to reproduce the behavior:
- Open explorerpp
- Make the window larger
- Close explorerpp
- Reopen explorerpp
Expected behavior The window is the same size as before. Also should retain the width of the sidebar.
Screenshots N/A
Version (please complete the following information):
- Explorer++ version 1.5.0.2736 dev (64-bit build)
- OS: Windows 11 25H2 (2622.6899)
Additional context
- Identical behaviour: open any folder (set to replace default explorer); run via commandline
Workaround
- Compile with changed defaults, such as:
LayoutDefaults.h
inline constexpr UINT DEFAULT_TREEVIEW_WIDTH = 315;
LayoutDefaults.cpp
auto width = static_cast<int>(GetRectWidth(&workArea) * 0.75);
auto height = static_cast<int>(GetRectHeight(&workArea) * 0.85);