SWButton rename option to text
This commit is contained in:
parent
55661ca7a0
commit
91f3db782d
|
@ -19,7 +19,7 @@ public class SWButton extends SWItem {
|
||||||
super(Type.BUTTON);
|
super(Type.BUTTON);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SWButton option(int buttonText) {
|
public SWButton text(int buttonText) {
|
||||||
this.buttonText = buttonText;
|
this.buttonText = buttonText;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class SWDefinition {
|
||||||
.label(R.string.nsclientinternal_secret_dialogtitle)
|
.label(R.string.nsclientinternal_secret_dialogtitle)
|
||||||
.comment(R.string.nsclientinternal_secret_dialogmessage))
|
.comment(R.string.nsclientinternal_secret_dialogmessage))
|
||||||
.add(new SWButton()
|
.add(new SWButton()
|
||||||
.option(R.string.enable_nsclient)
|
.text(R.string.enable_nsclient)
|
||||||
.action(() -> {
|
.action(() -> {
|
||||||
NSClientPlugin.getPlugin().setPluginEnabled(PluginType.GENERAL, true);
|
NSClientPlugin.getPlugin().setPluginEnabled(PluginType.GENERAL, true);
|
||||||
NSClientPlugin.getPlugin().setFragmentVisible(PluginType.GENERAL, true);
|
NSClientPlugin.getPlugin().setFragmentVisible(PluginType.GENERAL, true);
|
||||||
|
|
Loading…
Reference in a new issue