Surrealism-All / SurrealismUI

A third-party UI library using Slint, I think it will give you an extraordinary experience
https://surrealism-all.github.io/SurrealismUI.github.io/
MIT License
197 stars 19 forks source link

fix: repetitive `Close_one` member in property `icons` #43

Closed Serein207 closed 1 month ago

Serein207 commented 1 month ago

This error may cause redeclaration error in cpp, but not cause in rust (? I guess :smiling_face_with_tear:

syf20020816 commented 1 month ago

is that can not use in preview or can not use after compile can you give me more details, I do not use c++ if that display well after compile the merge is not necessary

Serein207 commented 1 month ago

It compiled error image

syf20020816 commented 1 month ago

can other Icons pass the compiler(such as Preview_one, Down_one)

Serein207 commented 1 month ago

There is no problem with other icons.

The compilation failed simply because Close_one was written twice in the code, which would cause two members with the same name to appear in the Icon class in the .h file compiled by slint.

So, removing any one of them will make the code compile. :smile:

syf20020816 commented 1 month ago

There is no problem with other icons.

The compilation failed simply because Close_one was written twice in the code, which would cause two members with the same name to appear in the Icon class in the .h file compiled by slint.

So, removing any one of them will make the code compile. 😄

ok I see that, merge