Stefan Haller
df3afb1b89
Replace CurrentSideContext() with Context().CurrentSide()
2024-08-17 11:14:51 +02:00
Stefan Haller
7ed94c0410
Replace CurrentContext() with Context().Current()
2024-08-17 11:14:51 +02:00
Stefan Haller
caad553502
Remove ErrorMsg
...
There is no reason any more for application code to show error messages in a
panel. Just return an error instead.
2024-04-18 10:10:30 +02:00
Stefan Haller
1106981827
Extract a SaveAppStateAndLogError function
...
It seems that most actions that change a state option and resave the state want
to just log the error.
2023-09-04 17:50:49 +02:00
Stefan Haller
be667682f0
Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes
2023-07-31 11:41:55 +02:00
Stefan Haller
401610c0ef
Remove the toast when toggling "ignore whitespace"
...
Now that we visualize the state, the toast is no longer needed.
2023-05-20 12:58:32 +10:00
Stefan Haller
7d4bfb6621
Don't toggle "ignore whitespace" in the staging and patch building panels
...
The option doesn't have any affect in these views, so we don't need to toggle it
here. But the problem was the HandleFocus call at the end: this would activate
the wrong view, so we need to avoid it here.
Show an error if the user tries to turn the option on, to let them know that it
doesn't work here.
2023-05-20 12:58:32 +10:00
Jesse Duffield
0faa41e6f8
move toggle whitespace action to controllers package
2023-04-30 13:19:53 +10:00