SWButton rename option to text

This commit is contained in:
Milos Kozak 2018-05-04 10:20:22 +02:00
parent 55661ca7a0
commit 91f3db782d
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ public class SWButton extends SWItem {
super(Type.BUTTON);
}
public SWButton option(int buttonText) {
public SWButton text(int buttonText) {
this.buttonText = buttonText;
return this;
}

View file

@ -65,7 +65,7 @@ public class SWDefinition {
.label(R.string.nsclientinternal_secret_dialogtitle)
.comment(R.string.nsclientinternal_secret_dialogmessage))
.add(new SWButton()
.option(R.string.enable_nsclient)
.text(R.string.enable_nsclient)
.action(() -> {
NSClientPlugin.getPlugin().setPluginEnabled(PluginType.GENERAL, true);
NSClientPlugin.getPlugin().setFragmentVisible(PluginType.GENERAL, true);