1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-06-28 05:25:11 +00:00

Rename collection through zenity dialog

This commit is contained in:
2023-02-21 08:14:52 +01:00
parent 5968357abc
commit 1f76b16e75
4 changed files with 16 additions and 69 deletions

View File

@ -167,9 +167,8 @@ func (a *App) OpenDirectory(id, title string) string {
return dir
}
func (a *App) EnterText(title, info string) string {
println("wertyuijhgfd")
input, err := zenity.Entry(info, zenity.Title(title))
func (a *App) EnterText(title, info, defaultEntry string) string {
input, err := zenity.Entry(info, zenity.Title(title), zenity.EntryText(defaultEntry))
if err == zenity.ErrCanceled {
return ""