Skip to content

Commit ad6818c

Browse files
authored
🔀 Merge pull request #38 from davep/file-save
Actually use the save dialog for the initial example
2 parents 7310c32 + a6b123f commit ad6818c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/using.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ screen](https://textual.textualize.io/guide/screens/#waiting-for-screens)
1818
will look something like this:
1919

2020
```python
21-
from textual_fspicker import FileOpen
21+
from textual_fspicker import FileSave
2222

2323
...
2424

@@ -30,7 +30,7 @@ class SomeApp(App):
3030
@work
3131
async def save_document(self) -> None:
3232
"""Save the document."""
33-
if save_to := await self.push_screen_wait(FileOpen()):
33+
if save_to := await self.push_screen_wait(FileSave()):
3434
my_saving_function(save_to)
3535
self.notify("Saved")
3636
else:

0 commit comments

Comments
 (0)