Skip to content

Commit

Permalink
update context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Feb 16, 2023
1 parent e8d5cd3 commit 4af0bec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions resources/romfs/lang/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"menu.playlist.previous": "上一个",
"menu.playlist.add_files": "添加文件..",
"menu.playlist.add_folder": "添加文件夹..",
"menu.playlist.clear": "清空",
"menu.playlist.shuffle": "随机",
"menu.playlist.loop": "循环",
"menu.playlist.clear": "清空列表",
"menu.playlist.shuffle": "随机播放",
"menu.playlist.loop": "循环播放",
"menu.playlist.all": "所有..",
"menu.chapters": "章节",
"menu.chapters.next": "下一个",
Expand Down
7 changes: 4 additions & 3 deletions source/views/context_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ void ContextMenu::drawPlaylist(std::vector<Mpv::PlayItem> items) {
if (ImGui::MenuItemEx("menu.playlist.add_folder"_i18n, ICON_FA_FOLDER_PLUS))
mpv->command("script-message-to implay playlist-add-folder");
ImGui::Separator();
if (ImGui::MenuItem("menu.playlist.clear"_i18n)) mpv->command("playlist-clear");
if (ImGui::MenuItem("menu.playlist.shuffle"_i18n)) mpv->command("playlist-shuffle");
if (ImGui::MenuItem("menu.playlist.loop"_i18n, "L")) mpv->command("cycle-values loop-playlist inf no");
if (ImGui::MenuItemEx("menu.playlist.shuffle"_i18n, ICON_FA_RANDOM)) mpv->command("playlist-shuffle");
if (ImGui::MenuItemEx("menu.playlist.loop"_i18n, ICON_FA_SYNC, "L"))
mpv->command("cycle-values loop-playlist inf no");
if (ImGui::MenuItemEx("menu.playlist.clear"_i18n, ICON_FA_TRASH_ALT)) mpv->command("playlist-clear");
ImGui::Separator();
if (ImGui::MenuItem("menu.quickview"_i18n)) mpv->command("script-message-to implay quickview playlist");
if (items.size() > 0) ImGui::Separator();
Expand Down

0 comments on commit 4af0bec

Please sign in to comment.