Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当设置压缩引擎时,如果设置两次一样的Engine反而就关闭了压缩。 #2404

Closed
sandking opened this issue Jun 20, 2022 · 0 comments

Comments

@sandking
Copy link

sandking commented Jun 20, 2022

Current use version?

当前使用的版本是多少?

3.10.2

Will this problem occur in demo?

Demo能否复现这问题?


Describe the problem or provide an error log?

描述问题或提供错误log?

` public PictureSelectionModel setCompressEngine(CompressFileEngine engine) {
        if (PictureSelectionConfig.compressFileEngine != engine) {
            PictureSelectionConfig.compressFileEngine = engine;
            selectionConfig.isCompressEngine = true;
        } else {
            selectionConfig.isCompressEngine = false;
        }
        return this;
    }`

该代码当设置压缩引擎时,如果设置两次一样的Engine反而就关闭了压缩。

其他部分Engine设置也貌似是如此

虽然页面关闭时会清理,但是如果涉及到设置参数不小心设置两次,可能就会出现这种问题。
@sandking sandking reopened this Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants