mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 13:07:58 +00:00
Updated "purge logs?" dialog
This commit is contained in:
parent
78540622ee
commit
a3df489beb
@ -88,11 +88,12 @@ func (a *App) Environment() EnvironmentInfo {
|
||||
|
||||
func (a *App) PurgeLogDirectory() {
|
||||
sure, _ := wailsRuntime.MessageDialog(a.ctx, wailsRuntime.MessageDialogOptions{
|
||||
Title: "Are you sure you want to remove all logfiles?",
|
||||
Title: "Confirm",
|
||||
Message: "Are you sure you want to remove all logfiles?",
|
||||
Buttons: []string{"Yes", "No"},
|
||||
DefaultButton: "Yes",
|
||||
CancelButton: "No",
|
||||
Type: wailsRuntime.QuestionDialog,
|
||||
Type: wailsRuntime.WarningDialog,
|
||||
})
|
||||
|
||||
if sure != "Yes" {
|
||||
|
Loading…
Reference in New Issue
Block a user