Do not clear filled font names on restart cancel
This commit is contained in:
parent
0698f096d1
commit
cd6a0029c8
1 changed files with 6 additions and 2 deletions
|
|
@ -96,7 +96,9 @@ void FontsBox::save() {
|
|||
App::restart();
|
||||
};
|
||||
|
||||
Ui::show(
|
||||
const auto box = std::make_shared<QPointer<BoxContent>>();
|
||||
|
||||
*box = getDelegate()->show(
|
||||
Box<ConfirmBox>(
|
||||
tr::ktg_fonts_restart_new_fonts(tr::now),
|
||||
tr::ktg_fonts_restart(tr::now),
|
||||
|
|
@ -114,7 +116,9 @@ void FontsBox::resetToDefault() {
|
|||
App::restart();
|
||||
};
|
||||
|
||||
Ui::show(
|
||||
const auto box = std::make_shared<QPointer<BoxContent>>();
|
||||
|
||||
*box = getDelegate()->show(
|
||||
Box<ConfirmBox>(
|
||||
tr::ktg_fonts_restart_reset(tr::now),
|
||||
tr::ktg_fonts_restart(tr::now),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue