Avoiding blocking before receiving the progress bar size.

This commit is contained in:
Sergiotarxz 2024-12-02 12:23:21 +01:00
parent 0956651338
commit 6a809bf4ce
2 changed files with 9 additions and 0 deletions

View File

@ -80,7 +80,11 @@ sub _migrate_kanji($self) {
Glib::Timeout->add(
1_000,
sub {
$read->blocking(0);
$n_characters = <$read>;
if (!defined $n_characters) {
return 1;
}
chomp $n_characters;
say 'Copying ' . $n_characters . ' kanji';
Glib::Timeout->add(

View File

@ -32,6 +32,11 @@
<developer_name>sergiotarxz</developer_name>
<releases>
<release version="v1.01" date="2024-12-02">
<description>
<p>Bugfix, avoiding blocking the program for a small time while waiting for the number of kanji characters to populate.</p>
</description>
</release>
<release version="v1.00" date="2024-11-27">
<description>
<p>Adding BETA Kanji support.</p>