~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-zesty-2681

« back to all changes in this revision

Viewing changes to plugins/reset/ResetAllSettings.qml

  • Committer: Bileto Bot
  • Author(s): Ken VanDine
  • Date: 2017-04-06 13:38:08 UTC
  • mfrom: (1772.3.5 readd_launcher_reset)
  • Revision ID: ci-train-bot@canonical.com-20170406133808-381oua9p9ssu5imk
Add reset launcher to the launcher panel (LP: #1677232)

Approved by: Jonas G. Drange, system-apps-ci-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This file is part of system-settings
3
 
 *
4
 
 * Copyright (C) 2013 Canonical Ltd.
5
 
 *
6
 
 * Contact: Iain Lane <iain.lane@canonical.com>
7
 
 *
8
 
 * This program is free software: you can redistribute it and/or modify it
9
 
 * under the terms of the GNU General Public License version 3, as published
10
 
 * by the Free Software Foundation.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful, but
13
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
14
 
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
 
 * PURPOSE.  See the GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License along
18
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */
20
 
 
21
 
import QtQuick 2.4
22
 
import Ubuntu.Components 1.3
23
 
import Ubuntu.Components.Popups 1.3
24
 
 
25
 
Component {
26
 
    id: resetAllSettings
27
 
    Dialog {
28
 
        id: dialog
29
 
        text: i18n.tr("The contents and layout of the launcher, and the filters in the home screen will be returned to their original settings.")
30
 
        Button {
31
 
            text: i18n.tr("Reset all system settings")
32
 
            onClicked: {
33
 
                pluginManager.resetPlugins()
34
 
                PopupUtils.close(dialog)
35
 
            }
36
 
        }
37
 
        Button {
38
 
            text: i18n.tr("Cancel")
39
 
            onClicked: PopupUtils.close(dialog)
40
 
        }
41
 
    }
42
 
}