Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit b4b65f0

Browse files
author
qPexLegendary
committed
Исправлено название типа картинки
1 parent d13d474 commit b4b65f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package ru.nukkitx.forms.elements;
22

33
public enum ImageType {
4-
PAHT, URL
4+
PATH, URL
55
}

src/main/java/ru/nukkitx/forms/elements/SimpleForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public SimpleForm addButton(String text) {
4040

4141
public SimpleForm addButton(String text, ImageType type, String ico) {
4242
ElementButton button = new ElementButton(text);
43-
button.addImage(new ElementButtonImageData((type == ImageType.PAHT) ? "path" : "url", ico));
43+
button.addImage(new ElementButtonImageData((type == ImageType.PATH) ? "path" : "url", ico));
4444
((FormWindowSimple) form).addButton(button);
4545
return this;
4646
}

0 commit comments

Comments
 (0)