-
-
Notifications
You must be signed in to change notification settings - Fork 22.4k
Clarify Windows export warnings for File and Product Version #106007
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -388,17 +388,14 @@ | |||||
if (version_array.size() != 4 || !version_array[0].is_valid_int() || | ||||||
!version_array[1].is_valid_int() || !version_array[2].is_valid_int() || | ||||||
!version_array[3].is_valid_int() || file_version.contains_char('-')) { | ||||||
return TTR("Invalid file version."); | ||||||
return TTR("Invalid file version. Proper format is x.x.x.x where x is any int."); | ||||||
} | ||||||
} | ||||||
} else if (p_name == "application/product_version") { | ||||||
String product_version = p_preset->get("application/product_version"); | ||||||
if (!product_version.is_empty()) { | ||||||
PackedStringArray version_array = product_version.split(".", false); | ||||||
if (version_array.size() != 4 || !version_array[0].is_valid_int() || | ||||||
!version_array[1].is_valid_int() || !version_array[2].is_valid_int() || | ||||||
!version_array[3].is_valid_int() || product_version.contains_char('-')) { | ||||||
return TTR("Invalid product version."); | ||||||
if (product_version[0].is_valid_int()) { | ||||||
Check failure on line 397 in platform/windows/export/export_plugin.cpp
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't compile:
I'm not sure how |
||||||
return TTR("Invalid product version. Allowable format is any string beginning with a number"); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
} | ||||||
} | ||||||
} | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.