essential-actions

Clone or download

[OBS] [SetCurrentProfile] - Cleanup, updated to use new action api

Modified Files

--- 'a/obssuite/setcurrentprofile/.gitignore'
+++ b/obssuite/setcurrentprofile/.gitignore
@@ -1,6 +1,7 @@
.idea/
target/
+*.iml
.classpath
.factorypath
.project
--- 'a/obssuite/setcurrentprofile/pom.xml'
+++ b/obssuite/setcurrentprofile/pom.xml
@@ -6,7 +6,7 @@
<groupId>com.stream-pi</groupId>
<artifactId>obssuite_setcurrentprofileaction</artifactId>
- <version>2.0.0</version>
+ <version>2.0.1</version>
<build>
<plugins>
@@ -39,7 +39,7 @@
<properties>
<ActionAPIVersion>1.0.0-SNAPSHOT</ActionAPIVersion>
<UtilVersion>1.0.0-SNAPSHOT</UtilVersion>
- <OBSSuiteMotherVersion>2.0.0</OBSSuiteMotherVersion>
+ <OBSSuiteMotherVersion>2.0.1</OBSSuiteMotherVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
--- 'a/obssuite/setcurrentprofile/src/main/java/setcurrentprofile/SetCurrentProfile.java'
+++ b/obssuite/setcurrentprofile/src/main/java/setcurrentprofile/SetCurrentProfile.java
@@ -11,7 +11,8 @@ import mother.motherconnection.MotherCon
public class SetCurrentProfile extends NormalAction
{
- public SetCurrentProfile() {
+ public SetCurrentProfile()
+ {
setName("Set Current Profile");
setCategory("OBS");
setVisibilityInServerSettingsPane(false);
@@ -20,7 +21,7 @@ public class SetCurrentProfile extends N
}
@Override
- public void initProperties() throws Exception
+ public void initProperties() throws MinorException
{
Property currentProfileProperty = new Property("profile", Type.STRING);
currentProfileProperty.setDisplayName("Profile Name");
@@ -33,7 +34,7 @@ public class SetCurrentProfile extends N
}
@Override
- public void onActionClicked() throws Exception
+ public void onActionClicked() throws MinorException
{
String profile = getClientProperties().getSingleProperty("profile").getStringValue();