mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: do not need to reload webview when initialize dictionaries (#1690)
* opt: do not need to reload webview when initialize dictionaries During this phase ,the webview has not existed yet
This commit is contained in:
parent
99ce0a7bbb
commit
521c359b24
|
@ -21,7 +21,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [windows-2022]
|
||||
qt_ver: [ 6.7.2 ]
|
||||
qt_ver: [ 6.7.2, 6.6.3 ]
|
||||
qt_arch: [win64_msvc2019_64]
|
||||
env:
|
||||
version: 24.05.13
|
||||
|
@ -168,8 +168,22 @@ jobs:
|
|||
gh release upload "${tagName}" "${namePrefix}.7z#${namePrefix}-Windows.7z" --clobber
|
||||
gh release upload "${tagName}" "${namePrefix}.exe#${namePrefix}-Windows-installer.exe" --clobber
|
||||
|
||||
cd './goldendict'
|
||||
gh release upload "${tagName}" "goldendict.exe#${namePrefix}-Windows-main-exe-file-only.exe" --clobber
|
||||
gh release upload "${tagName}" "goldendict.pdb#${namePrefix}-Windows-debug-file.pdb" --clobber
|
||||
cd ..
|
||||
|
||||
- name: Upload Single packages
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tagName="v${{env.version}}-${{env.versionSuffix}}.$(git rev-parse --short=8 HEAD)"
|
||||
echo $tagName
|
||||
namePrefix="GoldenDict-ng-${{env.version}}-Qt${{matrix.qt_ver}}"
|
||||
|
||||
cd ./build_dir/goldendict
|
||||
|
||||
# rename to avoid conflict with other packages
|
||||
mv goldendict.exe goldendict-Qt${{matrix.qt_ver}}.exe
|
||||
mv goldendict.pdb goldendict-Qt${{matrix.qt_ver}}.pdb
|
||||
|
||||
gh release upload "${tagName}" "goldendict-Qt${{matrix.qt_ver}}.exe#${namePrefix}-Windows-main-exe-file-only.exe" --clobber
|
||||
gh release upload "${tagName}" "goldendict-Qt${{matrix.qt_ver}}.pdb#${namePrefix}-Windows-debug-file.pdb" --clobber
|
||||
cd ..
|
|
@ -1535,7 +1535,7 @@ void MainWindow::makeDictionaries()
|
|||
ftsIndexing.doIndexing();
|
||||
|
||||
updateStatusLine();
|
||||
updateGroupList();
|
||||
updateGroupList( false );
|
||||
}
|
||||
|
||||
void MainWindow::updateStatusLine()
|
||||
|
@ -1597,9 +1597,9 @@ void MainWindow::updateGroupList( bool reload )
|
|||
|
||||
updateDictionaryBar();
|
||||
|
||||
qDebug() << "Reloading all the tabs...";
|
||||
|
||||
if ( reload ) {
|
||||
qDebug() << "Reloading all the tabs...";
|
||||
|
||||
for ( int i = 0; i < ui.tabWidget->count(); ++i ) {
|
||||
auto & view = dynamic_cast< ArticleView & >( *( ui.tabWidget->widget( i ) ) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue