Skip to content

Commit

Permalink
update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwillow committed Dec 13, 2024
1 parent 8da0632 commit 3aba6a3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/DialogMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#undef min
#undef max

const std::tstring appTitle = TEXT("SmartCharsetConverter v0.9.1 by Tom Willow");
const std::tstring appTitle = TEXT("SmartCharsetConverter v0.9.2 by Tom Willow");

const std::tstring configFileName = TEXT("SmartCharsetConverter.json");

Expand Down Expand Up @@ -53,7 +53,9 @@ DialogMain::DialogMain(const std::vector<std::tstring> &filenames) : inputFilena
option.resourceIds = innerLanguageIds;
option.resourceType = L"LanguageJson";
InitLanguageService(option);
} catch (const nlohmann::json::exception &err) { throw; } catch (const std::exception &err) {
} catch (const nlohmann::json::exception &err) {
throw;
} catch (const std::exception &err) {
throw;
}
}
Expand Down Expand Up @@ -316,7 +318,9 @@ std::vector<std::tstring> DialogMain::AddItems(const std::vector<std::tstring> &
PostUIFunc([filename, ret, this]() {
AppendListViewItem(filename, ret.filesize, ret.srcCharset, ret.srcLineBreak, ret.strPiece);
});
} catch (io_error_ignore) { ignored.push_back(filename); } catch (const runtime_error &err) {
} catch (io_error_ignore) {
ignored.push_back(filename);
} catch (const runtime_error &err) {
failed.push_back({filename, err.what()});
}
};
Expand Down Expand Up @@ -793,7 +797,9 @@ LRESULT DialogMain::OnSpecifyOriginCharset(WORD /*wNotifyCode*/, WORD wID, HWND
auto filename = listview.GetItemText(index, static_cast<int>(ListViewColumn::FILENAME));
try {
core->SpecifyItemCharset(index, filename, code);
} catch (const std::runtime_error &err) { failed.push_back({filename, utf8_to_wstring(err.what())}); }
} catch (const std::runtime_error &err) {
failed.push_back({filename, utf8_to_wstring(err.what())});
}
}

if (!failed.empty()) {
Expand Down

0 comments on commit 3aba6a3

Please sign in to comment.