❔ How do I show SaveDialog once when pressing button?

How can I only show the savedialog once when you press the button, than once you press it again it will save it but not show a dialog. (sorry for bad english)
6 Replies
Anton
Anton2y ago
with a bool variable
TheUnrealGuy
TheUnrealGuyOP2y ago
what do I have to do to add it? how do I make it so that it doesn't show the dialog but saves it anyway?
Pingu
Pingu2y ago
Did you try DisplayAlert?
TheUnrealGuy
TheUnrealGuyOP2y ago
no what does that do?
Pingu
Pingu2y ago
Sorry this is aka Dialog in Xamarin forms. I did not check your problem platform. but You can write in your button method:
public void button_pressed(...)
{
bool once = true;
if(once) once = false
else
{
do something...
}
}
public void button_pressed(...)
{
bool once = true;
if(once) once = false
else
{
do something...
}
}
bool - is a variable , returns true or false
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server