Skip to content

Commit 26e1f5e

Browse files
Changed: Keep plugin config values when saving even if they wont be used since stdin scripts may be deleted accidentally
1 parent b2cc90b commit 26e1f5e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

app/src/main/java/com/termux/tasker/PluginBundleManager.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,9 @@ public static Bundle generateBundle(@NonNull final Context context, final String
147147
result.putBoolean(EXTRA_TERMINAL, inTerminal);
148148
result.putBoolean(EXTRA_WAIT_FOR_RESULT, waitForResult);
149149

150-
if (!inTerminal) {
151-
result.putString(EXTRA_STDIN, stdin);
152-
result.putString(EXTRA_BACKGROUND_CUSTOM_LOG_LEVEL, backgroundCustomLogLevel);
153-
} else {
154-
result.putString(EXTRA_SESSION_ACTION, sessionAction);
155-
}
150+
result.putString(EXTRA_STDIN, stdin);
151+
result.putString(EXTRA_BACKGROUND_CUSTOM_LOG_LEVEL, backgroundCustomLogLevel);
152+
result.putString(EXTRA_SESSION_ACTION, sessionAction);
156153

157154
Integer versionCode = PackageUtils.getVersionCodeForPackage(context);
158155
if (versionCode == null) {

0 commit comments

Comments
 (0)