Skip to content

Commit

Permalink
update translation & changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniol-lck committed Jan 28, 2022
1 parent ab347f2 commit d468ee0
Show file tree
Hide file tree
Showing 8 changed files with 757 additions and 530 deletions.
24 changes: 23 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
# Changelog
# Mod Manager Changelog

## 正式发布 Release

### v1.0.3

*2022.01.28*

Tweaked status bar, moved mod count to right side.
调整了状态栏,将mod计数移动至右侧。

Tweaked tool bar and search bar in explore page.
调整了浏览页面中的工具栏和搜索栏。

Tweaked add/remove tag actions in local mod pages, it can operate on multi-mods now.
调整了添加/移除标签

Added more actions to downloader.
为下载器添加了更多操作。

Fixed crash caused by actions on refreshed mod in explore pages.
修复了由在浏览页面中已刷新的mod上进行操作产生的崩溃。

Fixed mod link stuck.
修复了mod链接卡住。

### v1.0.2

*2022.01.24*
Expand Down
603 changes: 358 additions & 245 deletions languages/zh_CN.ts

Large diffs are not rendered by default.

613 changes: 353 additions & 260 deletions languages/zh_TW.ts

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/ui/download/downloadbrowser.ui
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@
</action>
<action name="actionStop">
<property name="icon">
<iconset theme="media-playback-stop"/>
<iconset theme="media-playback-stop">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>Stop</string>
Expand Down Expand Up @@ -168,7 +169,7 @@
<string>Force Stop</string>
</property>
<property name="toolTip">
<string>Dorce Stop</string>
<string>Force Stop</string>
</property>
</action>
</widget>
Expand Down
3 changes: 0 additions & 3 deletions src/ui/download/qaria2downloaderitemwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
<height>104</height>
</rect>
</property>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>12</number>
Expand Down
21 changes: 9 additions & 12 deletions src/ui/local/localmodbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,22 +813,20 @@ void LocalModBrowser::onSelectedModsChanged()
return mod->tags(TagCategory::CustomizableCategories).isEmpty();
}));

bool isEnabled = false;
for(auto &&mod : selectedMods_)
if(mod->isEnabled()) isEnabled = true;
ui->actionToggle_Enable->setChecked(isEnabled);
bool isStarred = false;
for(auto &&mod : selectedMods_)
if(mod->isFeatured()) isStarred = true;
ui->actionToggle_Star->setChecked(isStarred);
ui->actionToggle_Enable->setChecked(std::all_of(selectedMods_.cbegin(), selectedMods_.cend(), [=](const auto &mod){
return mod->isEnabled();
}));
ui->actionToggle_Star->setChecked(std::all_of(selectedMods_.cbegin(), selectedMods_.cend(), [=](const auto &mod){
return mod->isFeatured();
}));

if(!noMod && selectedMods_.first()->modFile())
statusBar()->showMessage(selectedMods_.first()->modFile()->fileInfo().fileName());
infoWidget_->setMods(selectedMods_);
fileListWidget_->setMods(selectedMods_);

if(selectedMods_.count() == 1){
ui->actionShow_This_Mod_in_Directory->setEnabled(true);
ui->actionShow_in_Folder->setEnabled(true);
ui->actionOpen_Mod_Dialog->setEnabled(true);
ui->actionSearch_on_Curseforge->setEnabled(true);
ui->actionSearch_on_Modrinth->setEnabled(true);
Expand All @@ -838,7 +836,7 @@ void LocalModBrowser::onSelectedModsChanged()
ui->actionOpen_Curseforge_Mod_Dialog->setEnabled(mod->curseforgeMod());
ui->actionOpen_Modrinth_Mod_Dialog->setEnabled(mod->modrinthMod());
} else{
ui->actionShow_This_Mod_in_Directory->setEnabled(false);
ui->actionShow_in_Folder->setEnabled(false);
ui->actionOpen_Mod_Dialog->setEnabled(false);
ui->actionSearch_on_Curseforge->setEnabled(false);
ui->actionSearch_on_Modrinth->setEnabled(false);
Expand Down Expand Up @@ -981,7 +979,7 @@ void LocalModBrowser::on_actionExport_Compressed_File_triggered()
});
}

void LocalModBrowser::on_actionShow_This_Mod_in_Directory_triggered()
void LocalModBrowser::on_actionShow_in_Folder_triggered()
{
if(selectedMods_.isEmpty()) return;
auto mod = selectedMods_.first();
Expand All @@ -994,4 +992,3 @@ void LocalModBrowser::on_actionCheck_Updates_for_Selected_Mods_triggered()
for(auto &&mod : selectedMods_)
mod->checkUpdates();
}

3 changes: 1 addition & 2 deletions src/ui/local/localmodbrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ private slots:
void on_actionExport_modlist_html_Modrinth_triggered();
void on_actionOpen_In_GitHub_triggered();
void on_actionExport_Compressed_File_triggered();
void on_actionShow_This_Mod_in_Directory_triggered();

void on_actionShow_in_Folder_triggered();
void on_actionCheck_Updates_for_Selected_Mods_triggered();

protected:
Expand Down
15 changes: 10 additions & 5 deletions src/ui/local/localmodbrowser.ui
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
<addaction name="separator"/>
<addaction name="actionRename_Selected_Mods"/>
<addaction name="actionRename_to"/>
<addaction name="actionShow_This_Mod_in_Directory"/>
<addaction name="actionShow_in_Folder"/>
<addaction name="actionMove_Selected_Mods_to"/>
<addaction name="actionCheck_Updates_for_Selected_Mods"/>
<addaction name="separator"/>
Expand Down Expand Up @@ -583,9 +583,12 @@
<string>Export Compressed File</string>
</property>
</action>
<action name="actionShow_This_Mod_in_Directory">
<action name="actionShow_in_Folder">
<property name="text">
<string>Show This Mod in Directory</string>
<string>Show in Folder</string>
</property>
<property name="toolTip">
<string>Show in Folder</string>
</property>
</action>
<action name="actionMove_Selected_Mods_to">
Expand Down Expand Up @@ -613,15 +616,17 @@
</action>
<action name="actionAdd_Tag">
<property name="icon">
<iconset theme="tag"/>
<iconset theme="tag">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>Add Tag</string>
</property>
</action>
<action name="actionRemove_Tag">
<property name="icon">
<iconset theme="tag-delete"/>
<iconset theme="tag-delete">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>Remove Tag</string>
Expand Down

0 comments on commit d468ee0

Please sign in to comment.