Skip to content

Commit d5c9e1b

Browse files
minor
1 parent 9408381 commit d5c9e1b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

potato_flow

src/Potato/Flow/Vty/SaveAsWindow.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ popupSaveAsWindow SaveAsWindowConfig {..} = do
7777
data SaveBeforeExitConfig t = SaveBeforeExitConfig {
7878
_saveBeforeExitConfig_exitWithChanges :: Event t ()
7979
}
80+
81+
-- TODO make this generic, via some PopupManager thingy or what not
82+
-- you want to use the same NeedSave for close and open when there are unsaved changes
83+
-- and after the save action, you want to redirect back to the open or quit operation
8084
data SaveBeforeExitOutput t = SaveBeforeExitOutput {
8185

8286
-- TODO you should be able to get this to work...

src/Potato/Reflex/Vty/Widget/ScrollBar.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ componentSub :: (Num a) => (a,a) -> (a,a) -> (a,a)
3737
componentSub (a,b) (c,d) = (a-c,b-d)
3838

3939
onlyIfSimultaneous :: (Reflex t) => Event t a -> Event t b -> Event t a
40-
onlyIfSimultaneous eva evb = fforMaybe (align eva evb) $ \case
40+
onlyIfSimultaneous eva evb = fforMaybe (align eva evb) $ \case
4141
These a _ -> Just a
4242
_ -> Nothing
4343

@@ -62,7 +62,7 @@ vScrollBar handleStyleBeh contentSizeDyn = mdo
6262
--innerDragEv will only fire on drag events that started on the scroll bar handle portion
6363
innerDragEv <- pane boxRegionDyn (constDyn True) $ do
6464
-- render the scroll bar handle
65-
fill (constant '#')
65+
fill (constant '#')
6666
drag2 V.BLeft
6767

6868
d2ev <- drag2 V.BLeft
@@ -107,7 +107,7 @@ vScrollBar handleStyleBeh contentSizeDyn = mdo
107107
let
108108
offsetScreenUnitDyn = fmap round . liftA2 (*) screen_over_content_dyn $ offsetFloatDyn
109109

110-
return $ traceDyn "offset" $ fmap floor offsetFloatDyn
110+
return $ fmap floor offsetFloatDyn
111111

112112

113113
{-

0 commit comments

Comments
 (0)