Skip to content

Commit

Permalink
Touch-ups 🌸
Browse files Browse the repository at this point in the history
- Removed a bad call to storeWidths in Splitter (resulting in not being able to drag open or shut and correctly recall sizes)
- Updated Todo
  • Loading branch information
fairybow committed Feb 20, 2023
1 parent 1630f97 commit aaf88a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Fernanda/docs/To-do.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@
- [ ] Ensure popups happen on the same monitor...

### Preview
- [ ] Moving pane before preview has saved in state will override the default preview size, and so toggling it on after that will toggle it on with width 0
- [ ] Need a default size to open to from toggle if not set (-1)
- [ ] Toggling preview on will have to trigger the above, because if never toggled on, it will toggle into existence with no width
- [ ] Ink support
- [ ] Print to PDF context menu
- [x] ~~While dragging a collapsed panel open will not override the saved size, dragging it closed will (remove line 149 probably and do storeWidths on mouse release, signalled by handle, instead...avoid saving periodically when dragging)~~
- [x] ~~Scrollbar should begin tied to position in editor. Can be moved independently but when snapped, scrolls with editor.~~
- [x] ~~Replace fountain CSS~~
- [x] ~~Minify fountain CSS~~
Expand Down
3 changes: 1 addition & 2 deletions Fernanda/src/Splitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void Splitter::storeWidths()
for (auto& widget_info : widgets)
{
if (widget_info.state != State::Expanded) continue;
auto size = sizes().at(widget_info.index);
auto& size = sizes().at(widget_info.index);
if (widget_info.width && size)
widget_info.width = size;
}
Expand All @@ -146,7 +146,6 @@ void Splitter::toggleExpansion(SplitterHandle* handlePointer)

void Splitter::checkStates(int position, int index)
{
storeWidths();
for (auto& widget_info : widgets)
{
auto& handle_index = widget_info.handleIndex;
Expand Down
4 changes: 2 additions & 2 deletions Fernanda/src/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#pragma once

#define VER_FILEVERSION 0,24,0,49
#define VER_FILEVERSION_STR "v0.24.0-beta49"
#define VER_FILEVERSION 0,24,1,50
#define VER_FILEVERSION_STR "v0.24.1-beta50"
#define VER_PRODUCTVERSION VER_FILEVERSION
#define VER_PRODUCTVERSION_STR VER_FILEVERSION_STR
#define VER_COMPANYNAME_STR "@fairybow"
Expand Down

0 comments on commit aaf88a9

Please sign in to comment.