| 766 | } |
| 767 | |
| 768 | void BrowserLayout::PromptDeleteFile(const std::string &path) { |
| 769 | if(this->CheckWriteAccess()) { |
| 770 | const auto option = g_MainApplication->DisplayDialog(cfg::Strings.GetString(127), cfg::Strings.GetString(128), { cfg::Strings.GetString(111), cfg::Strings.GetString(18) }, true); |
| 771 | if(option < 0) { |
| 772 | return; |
| 773 | } |
| 774 | |
| 775 | this->cur_exp->DeleteFile(path); |
| 776 | g_MainApplication->ShowNotification(cfg::Strings.GetString(129)); |
| 777 | auto tmp_idx = this->browse_menu->GetSelectedIndex(); |
| 778 | if(tmp_idx > 0) { |
| 779 | tmp_idx--; |
| 780 | } |
| 781 | this->UpdateElements(tmp_idx); |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | bool BrowserLayout::GoBack() { |
| 786 | return this->cur_exp->NavigateBack(); |
no test coverage detected