Add info about backing up configuration to snap dialog
This commit is contained in:
parent
f7b36ac4c7
commit
bbe5d64b99
|
@ -64,10 +64,20 @@ SnapDialog::SnapDialog(QWidget *parent) : QDialog(parent), ui_(new Ui_SnapDialog
|
||||||
text += tr("For a better experience please consider the other options above.");
|
text += tr("For a better experience please consider the other options above.");
|
||||||
text += QString("</p>");
|
text += QString("</p>");
|
||||||
|
|
||||||
|
text += QString("<p>");
|
||||||
|
text += tr("Copy your strawberry.conf and strawberry.db from your ~/snap directory to avoid losing configration before you uninstall the snap:");
|
||||||
|
text += QString("<br />");
|
||||||
|
text += QString("cp ~/snap/strawberry/*/.config/strawberry/strawberry.conf ~/.config/strawberry/strawberry.conf<br />");
|
||||||
|
text += QString("cp ~/snap/strawberry/*/.local/share/strawberry/strawberry/strawberry.db ~/.local/share/strawberry/strawberry/strawberry.db<br />");
|
||||||
|
text += QString("</p>");
|
||||||
|
text += QString("<p>");
|
||||||
|
text += tr("Uninstall the snap with: snap remove strawberry");
|
||||||
|
text += QString("</p>");
|
||||||
text += QString("<p></p>");
|
text += QString("<p></p>");
|
||||||
|
|
||||||
ui_->label_text->setText(text);
|
ui_->label_text->setText(text);
|
||||||
ui_->label_text->adjustSize();
|
ui_->label_text->adjustSize();
|
||||||
|
adjustSize();
|
||||||
|
|
||||||
ui_->buttonBox->button(QDialogButtonBox::Ok)->setShortcut(QKeySequence::Close);
|
ui_->buttonBox->button(QDialogButtonBox::Ok)->setShortcut(QKeySequence::Close);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>600</width>
|
<width>600</width>
|
||||||
<height>300</height>
|
<height>400</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
|
@ -42,16 +42,10 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer">
|
<spacer name="spacer_left">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
@ -84,14 +78,14 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>40</height>
|
<height>1</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
|
|
Loading…
Reference in New Issue