Fix export count (#4713)

This commit is contained in:
DHR60
2025-07-06 11:16:32 +08:00
committed by GitHub
parent 9a1654bae9
commit d039cb9edf

View File

@@ -71,7 +71,7 @@ object AngConfigManager {
if (sb.count() > 0) { if (sb.count() > 0) {
Utils.setClipboard(context, sb.toString()) Utils.setClipboard(context, sb.toString())
} }
return sb.lines().count() return sb.lines().count() - 1
} catch (e: Exception) { } catch (e: Exception) {
Log.e(AppConfig.TAG, "Failed to share non-custom configs to clipboard", e) Log.e(AppConfig.TAG, "Failed to share non-custom configs to clipboard", e)
return -1 return -1