mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix deleting theme from the list.
This commit is contained in:
parent
8fd17e2e8f
commit
048658f838
1 changed files with 3 additions and 3 deletions
|
@ -560,11 +560,11 @@ void CloudList::showMenu(Element &element) {
|
|||
_contextMenu->addAction(tr::lng_theme_delete(tr::now), [=] {
|
||||
const auto box = std::make_shared<QPointer<BoxContent>>();
|
||||
const auto remove = [=] {
|
||||
if (*box) {
|
||||
(*box)->closeBox();
|
||||
}
|
||||
if (Background()->themeObject().cloud.id == id
|
||||
|| id == kFakeCloudThemeId) {
|
||||
if (*box) {
|
||||
(*box)->closeBox();
|
||||
}
|
||||
if (Background()->editingTheme().has_value()) {
|
||||
Background()->clearEditingTheme(
|
||||
ClearEditing::KeepChanges);
|
||||
|
|
Loading…
Add table
Reference in a new issue