Comments (12)
Hello,
thanks for reported this.
btw not sure if in understand well.
you say, when you double click for open a directory, the frame after, the end of the list is not rendered ?
if this is that its normal.
When you open the dir, ImGuiFileDialog will start to scan the new directory and so empty the current list.
and its happenning during the display, so for avoid unecessary extra code, i decided to break the loop.
so as weel the end of the list is not rendered the next frame, but only the next frame.
is this a problem for you ?
from imguifiledialog.
Ok that explains indeed why it happens. It is a problem though, because when I do only a single click (not opening the next directory/file) it also happens. This causes the itemlist to look glitchy every time you click an item.
from imguifiledialog.
After your explanation I figured out that it could be avoided by commenting out line #1519 return true; // needToBreakTheloop
. Maybe this can be moved inside the if statement which checks for double clicks:
if (ImGui::IsMouseDoubleClicked(0)) // 0 -> left mouse button double click
{
m_PathClicked = SelectDirectory(vInfos);
return true; // needToBreakTheloop
}
from imguifiledialog.
so the problem for you is the glitch ?
from imguifiledialog.
Yes it is only visual. But gets annoying quickly. I can make a merge request of my tiny modification if you like?
from imguifiledialog.
yes please. your solution is working fine
from imguifiledialog.
Ok done. See pull request.
from imguifiledialog.
thanks you :)
from imguifiledialog.
Thanks, problem solved. (=
from imguifiledialog.
Unfortunately this issue has resurfaced. It can probably be easily fixed by commenting line 3897 in ImGuiFileDialog.cpp:
// return true; // needToBreakTheloop
Thanks.
from imguifiledialog.
yes its possible i rewrote it a bit for the new picture system.
thanks
from imguifiledialog.
fixed ! :)
from imguifiledialog.
Related Issues (20)
- Show Symlinks HOT 7
- Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_ including imgui.h! HOT 2
- User providing absolute path to file dialog results in malformed path HOT 8
- How to configure OpenDialog for "saving as" ? HOT 1
- Android? HOT 1
- Improve Compile Times HOT 1
- Compile Errors and Warnings in v0.6.6 HOT 7
- Compilation warnings: missing override tag HOT 1
- Add a way for compute the size according to the file infos like ext, by ex for separate gltf for have the bin size
- Add way for display a custom tooltip of many fields for a particular file
- Q: How to select directory? HOT 1
- Potential memory leak? HOT 9
- Files don't show up if they have no file extension HOT 9
- Issue while scanning directories HOT 2
- ScanDirectory with std::filesystem incomplete if an exception is raised HOT 3
- Assert used without including <cassert> header HOT 5
- Missing UTF8 Encode/Decode in std::filesystem ScanDirectory() ? HOT 8
- the file is not selected and does not open HOT 8
- IGFD_API macro redefinition warning HOT 3
- Compilation error Mac OS X HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imguifiledialog.