Commit Graph

17531 Commits

Author SHA1 Message Date
niksedk
d2a6a609d6 Fix crash when generating empty wav file for online video - thx Gromko1111 :)
Fix #7140
2023-07-24 19:49:53 +02:00
niksedk
521fb05c1d Fix mkv in batch-convert 2023-07-24 16:31:24 +02:00
niksedk
7622aaf5f0 Minor fix 2023-07-24 15:52:06 +02:00
niksedk
d9f8851b91 Update Bulgarian translation - thx Калин :) 2023-07-24 15:34:09 +02:00
Nikolaj Olsson
69dbc97473
Merge pull request #7152 from Flitskikker/feature/fix-20230724
Fix for #7151
2023-07-24 06:55:00 -04:00
Martijn van Berkel (Flitskikker)
ad93f0f6f2 Fix for #7151 2023-07-24 10:16:18 +02:00
niksedk
4e898c62ac Minor UI fixes 2023-07-24 05:41:01 +02:00
niksedk
8c07f7339b Testing a bit more... 2023-07-24 05:07:37 +02:00
niksedk
a31fac563a Do not call onpaint as much... 2023-07-24 05:02:32 +02:00
niksedk
0eaa058ba7 Only use invalidate 2023-07-23 21:15:50 +02:00
niksedk
47df52c61e Use local var 2023-07-23 21:06:07 +02:00
niksedk
7cf8ea11a8 Try to improve performance a little 2023-07-23 21:01:25 +02:00
niksedk
297423f4c3 Try to fix auto-save issue 2023-07-23 20:42:25 +02:00
niksedk
551e3ab3a8 Minor clean 2023-07-23 20:07:23 +02:00
niksedk
5381ed8cfe Fix WebVTT crash - thx ms2048 :)
Fix #7148
2023-07-23 20:07:11 +02:00
niksedk
1003c82710 More work on #7109 2023-07-23 16:38:56 +02:00
Nikolaj Olsson
0791562994
Merge pull request #7143 from ivandrofly/feature/recursive-line-breaks
Refactor line break removal using new RemoveRecursiveLineBreaks method
2023-07-23 10:07:06 -04:00
Nikolaj Olsson
d85f68da98
Merge pull request #7138 from ivandrofly/develop
Update name lists in dictionary files
2023-07-23 10:00:54 -04:00
Nikolaj Olsson
9d82ae4eaf
Merge pull request #7141 from Flitskikker/feature/update-nl-translation-20230722
Update Dutch translation
2023-07-23 09:59:13 -04:00
Nikolaj Olsson
db060c77be
Merge pull request #7142 from ivandrofly/feature/main-clean
Remove redundant UI control methods
2023-07-23 09:58:31 -04:00
Nikolaj Olsson
0719c7e412
Merge pull request #7144 from ivandrofly/feature/save-retry
Replace magic numbers with named constants
2023-07-23 09:55:30 -04:00
Nikolaj Olsson
b1eb3c6bfa
Merge pull request #7145 from Flitskikker/feature/btc-fix-20230723
Add more null and count checks
2023-07-23 09:54:28 -04:00
niksedk
cc77023f2d Work on #7109
Fix for new UpDown control
2023-07-23 15:49:08 +02:00
Martijn van Berkel (Flitskikker)
1c21a422db Add more null and count checks 2023-07-23 15:18:41 +02:00
niksedk
8752323fb3 Fix crash in audio visualizer - thx Juan :) 2023-07-23 15:00:21 +02:00
Ivandro Jao
9bcf49e286 Replace magic numbers with named constants
This commit replaces magic numbers in the retry mechanism with named constants. In "UpdateLanguageFiles", the hardcoded delay of 10ms between retries has been replaced by the variable 'delayBetweenRetries'. Similarly, in "UpdateAssemblyInfo", the number of retries set to 10 has been replaced with 'maxRetries' and 'delayBetweenRetries' is used for the time gap between each attempt. This makes the code more readable and maintainable.
2023-07-23 13:54:55 +01:00
niksedk
e4ff1ac262 more #7109 2023-07-23 14:15:54 +02:00
niksedk
687be44fd9 Work on #7109 2023-07-23 14:14:13 +02:00
Ivandro Jao
48e75d2c23 Refactor line break removal using new RemoveRecursiveLineBreaks method
This commit replaces the previous method of removing repeated line breaks in the text with a new RemoveRecursiveLineBreaks method. The previous implementation consisted of a loop that executed a Replace method each time a repeated line break was found in the text. This was not an optimal solution as it resulted in unnecessary overhead due to the continuous replacement process.

Now, the RemoveRecursiveLineBreaks method performs this operation more efficiently, without the need to continuously call the Replace method. The codebase has been updated to use the new method, improving execution speed and efficiency. Unit tests have also been added to confirm the functionality of this new method.
2023-07-23 01:51:42 +01:00
Ivandro Jao
c839752cfc Remove redundant UI control methods
The redundant methods handling UI controls for subtitle timing adjustments and waveform zoom were removed. These event handler methods were replaced with a more efficient design that is controlled centrally, improving code maintainability and reducing redundancy.
2023-07-23 01:17:28 +01:00
Martijn van Berkel (Flitskikker)
93ab333ae3 Ditto 2023-07-22 21:45:28 +02:00
Martijn van Berkel (Flitskikker)
98b54a5169 Ditto 2023-07-22 21:41:32 +02:00
Martijn van Berkel (Flitskikker)
11eada9d4d Some corrections 2023-07-22 21:28:17 +02:00
niksedk
e46f4e4092 Minor UI work 2023-07-22 17:46:37 +02:00
Ivandro Jao
f66f745bd2 Adjust order of operations in SplitLongLines
This commit modifies the order of method calls in the SplitLongLines feature. The SubtitleListview1.Items.Clear() operation is now called after SubtitleListview1.BeginUpdate(). This change prevents visual glitches and improves the overall performance by delaying the UI update until all changes have been made.
2023-07-22 13:24:21 +01:00
Ivandro Jao
de15e8a06f Update name lists in dictionary files
Changes were made to the 'en_names.xml' and 'names.xml' dictionary files. The name '2Pac' was moved from 'en_names.xml' to 'names.xml' to enhance the correct language categorization. The name 'AI' was added to 'en_names.xml' to improve the AI related query processing. In addition, several other relevant names were also added to 'names.xml', including 'Apple Inc.', 'Rumble', 'The Matrix', 'Burger King', and 'KFC', to enhance the dictionary coverage for those specific topics. The name 'AndreasB88', which seems to be a typo, was removed.
2023-07-22 01:09:31 +01:00
Martijn van B
727ab8ca77
Update Dutch.isl 2023-07-22 01:08:55 +02:00
Martijn van B
dd3dcea5d9
Update Subtitle_Edit_Localization.iss 2023-07-22 01:07:05 +02:00
Martijn van Berkel (Flitskikker)
7c7c314869 Update Dutch translation 2023-07-22 01:02:39 +02:00
niksedk
ac03546766 Fix issue with new time code control -thx darnn :)
Related to #7109
2023-07-21 19:30:25 +02:00
Nikolaj Olsson
a9cf7df0de
Merge pull request #7137 from ivandrofly/feature/patch-5
Refactor SaveWithRetry to take action instead of parameters
2023-07-21 12:54:18 -04:00
Nikolaj Olsson
ecb37a99eb
Merge pull request #7133 from ivandrofly/feature/listview
Optimize WordLists ListView population
2023-07-21 12:53:02 -04:00
Nikolaj Olsson
501877b8db
Merge pull request #7135 from ivandrofly/feature/patch-3
Remove unnecessary usings across various files
2023-07-21 12:52:39 -04:00
Ivandro Jao
40afd1879d Refactor SaveWithRetry to take action instead of parameters
The two existing implementations of SaveWithRetry were similar except for the action taken. This commit eliminates code redundancy by making SaveWithRetry accept a delegate for the save action and handle the retries. This approach makes the code more readable and easier to maintain in the future. It also makes the number of retries and delay between them configurable, opening possibilities for future improvements.
2023-07-21 17:52:25 +01:00
Nikolaj Olsson
ff8d3d2a44
Merge pull request #7136 from ivandrofly/feature/patch-4
Refactor file path resolution in FindVersionNumber
2023-07-21 12:52:12 -04:00
Nikolaj Olsson
934364125c
Merge pull request #7134 from ivandrofly/feature/patch-2
Update method for retrieving installer path
2023-07-21 12:51:24 -04:00
Ivandro Jao
5072fad588 Refactor file path resolution in FindVersionNumber
Removed multiple identical if statements and adjusted it with a while loop to find the template file. The change avoids duplicate code and adds a retry limit to prevent infinite looping if the file is not found.
2023-07-21 17:32:26 +01:00
Ivandro Jao
b0ba5cc07b Remove unused namespaces from certain files
Eliminated extraneous 'using' directives from FixEmptyLines.cs, FixUnneededPeriods.cs, and SplitLongLinesHelper.cs. These namespaces are not utilized in the respective files and thus their removal helps to maintain cleaner, less cluttered code.
2023-07-21 17:25:14 +01:00
Ivandro Jao
633b8e4829 Remove unnecessary usings across various files
Multiple redundant using directives were removed from various files, contributing to the cleaner and more efficient codebase. These were no longer needed due to previous refactoring operations, where dependencies on these namespaces were eliminated.
2023-07-21 17:23:59 +01:00
Ivandro Jao
e7c7c300cf Update method for retrieving installer path
The method 'GetInstallerPath' in 'Configuration.cs' has been updated to check both 32-bit and 64-bit registry paths for the 'SubtitleEdit_is1' uninstall key. This was changed to enhance compatibility with different system architectures, ensuring that the correct path is found in both scenarios. Changes involve replacing separate read commands with an array of paths and a loop to sift through them.
2023-07-21 17:22:46 +01:00