mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Make global view properties the default setting
Summary: Automatic creation of .directory files is one of the most complained about things in dolphin. These days applications are supposed to store application-specific data within $XDG_DATA_HOME. Long-term that's the proper solution for this issue, but for now we can at least flip the default so that we no longer create .directory files out of the box. A tooltip is also added as a kind of warning for the users who want to change the setting. Ideally a proper warning should be shown using a KMessageWidget or KMessageBox, but neither play too well with the setting dialog workflow used by dolphin. CCBUG: 322922 Reviewers: #dolphin, #vdg, ngraham Reviewed By: #dolphin, #vdg, ngraham Subscribers: ngraham, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D19661
This commit is contained in:
parent
13ae434646
commit
d6c086ad04
|
@ -48,7 +48,7 @@
|
|||
</entry>
|
||||
<entry name="GlobalViewProps" type="Bool">
|
||||
<label>Should the view properties be used for all folders</label>
|
||||
<default>false</default>
|
||||
<default>true</default>
|
||||
</entry>
|
||||
<entry name="BrowseThroughArchives" type="Bool">
|
||||
<label>Browse through archives</label>
|
||||
|
|
|
@ -48,14 +48,15 @@ BehaviorSettingsPage::BehaviorSettingsPage(const QUrl& url, QWidget* parent) :
|
|||
|
||||
|
||||
// View properties
|
||||
m_localViewProps = new QRadioButton(i18nc("@option:radio", "Remember properties for each folder"));
|
||||
m_globalViewProps = new QRadioButton(i18nc("@option:radio", "Use common properties for all folders"));
|
||||
m_localViewProps = new QRadioButton(i18nc("@option:radio", "Remember properties for each folder"));
|
||||
m_localViewProps->setToolTip(i18nc("@info", "Dolphin will create an hidden .directory file in each folder you change view properties for."));
|
||||
|
||||
QButtonGroup* viewGroup = new QButtonGroup(this);
|
||||
viewGroup->addButton(m_localViewProps);
|
||||
viewGroup->addButton(m_globalViewProps);
|
||||
topLayout->addRow(i18nc("@title:group", "View: "), m_localViewProps);
|
||||
topLayout->addRow(QString(), m_globalViewProps);
|
||||
viewGroup->addButton(m_localViewProps);
|
||||
topLayout->addRow(i18nc("@title:group", "View: "), m_globalViewProps);
|
||||
topLayout->addRow(QString(), m_localViewProps);
|
||||
|
||||
|
||||
topLayout->addItem(new QSpacerItem(0, Dolphin::VERTICAL_SPACER_HEIGHT, QSizePolicy::Fixed, QSizePolicy::Fixed));
|
||||
|
|
Loading…
Reference in a new issue