val w = dialogWindow(
parent = window,
title = "Add Feed",
- defaultButton = 1,
- lbutton1 = "Add",
- rbutton4 = "Cancel",
+ defaultButton = 4,
+ lbutton1 = "Cancel",
+ rbutton4 = "Add",
modal = true,
showCloseButton = false,
width = 600,
height = 450,
onClick = { ev ->
- if(ev.intValue == 1) {
+ if(ev.intValue == 4) {
feedConfig?.addFeed()
}
ev.`object`.close()
val w = dialogWindow(
parent = window,
title = "Add Folder",
- defaultButton = 1,
- lbutton1 = "Add",
- rbutton4 = "Cancel",
+ defaultButton = 4,
+ lbutton1 = "Cancel",
+ rbutton4 = "Add",
modal = true,
showCloseButton = false,
onClick = { ev ->
- if(ev.intValue == 1) {
+ if(ev.intValue == 4) {
val nameStr = name.toString()
if(!nameStr.isBlank()) {
try {
val w = dialogWindow(
parent = window,
title = "Edit Feed",
- defaultButton = 1,
- lbutton1 = "Save",
- rbutton4 = "Cancel",
+ defaultButton = 4,
+ lbutton1 = "Cancel",
+ rbutton4 = "Save",
modal = true,
showCloseButton = false,
width = 600,
height = 450,
onClick = { ev ->
- if(ev.intValue == 1) {
+ if(ev.intValue == 4) {
feedConfig?.updateFeed()
}
ev.`object`.close()