Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Remove unused/duplicate settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDuquesnoy committed Sep 17, 2017
1 parent 9e6b8e2 commit cfabd2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
2 changes: 0 additions & 2 deletions lib/MellowPlayer/Application/Settings/SettingKey.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace MellowPlayer::Application
NOTIFICATIONS_NEW_VERSION,
NOTIFICATIONS_PAUSED,
NOTIFICATIONS_RESUMED,
PRIVACY_CHECK_FOR_UPDATES,
PRIVACY_ENABLE_LISTENING_HISTORY,
PRIVACY_LISTENING_HISTORY_LIMIT,
PRIVATE_CURRENT_SERVICE,
Expand Down Expand Up @@ -75,7 +74,6 @@ namespace MellowPlayer::Application
enumToString << "notifications/new-version";
enumToString << "notifications/paused";
enumToString << "notifications/resumed";
enumToString << "privacy/check-for-updates";
enumToString << "privacy/enable-listening-history";
enumToString << "privacy/listening-history-limit";
enumToString << "private/current-service";
Expand Down
17 changes: 1 addition & 16 deletions lib/MellowPlayer/Application/Settings/schema.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@
"default": false,
"key": "resumed",
"enabled": "notifications/enabled"
},
{
"name": "Display a notification at startup when a new version of MellowPlayer is available,",
"tooltip": "Enabled/Disable displaying a notification when a new version of MellowPlayer is available",
"type": "bool",
"default": true,
"key": "new-version",
"enabled": "notifications/enabled"
}
]
},
Expand Down Expand Up @@ -305,14 +297,7 @@
"default": 3,
"key": "listening-history-limit",
"enabled": "privacy/enable-listening-history"
},
{
"name": "Automatically check for updates",
"tooltip": "Enable this option to be notified when a new version of MellowPlayer is available.",
"type": "bool",
"default": true,
"key": "check-for-updates"
}
}
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function translateName(name) {
'About': qsTr('About'),
'Quit': qsTr('Quit'),
'Enable listening history': qsTr('Enable listening history'),
'Listening history limit': qsTr('Listening history limit'),
'Automatically check for updates': qsTr('Automatically check for updates')
'Listening history limit': qsTr('Listening history limit')
};

return translations[name];
Expand Down Expand Up @@ -81,8 +80,7 @@ function translateToolTip(toolTip) {
'Show about page.': qsTr('Show about page.'),
'Quit the application.': qsTr('Quit the application.'),
'Enable listening history to keep track of the songs you listened to.': qsTr('Enable listening history to keep track of the songs you listened to.'),
'Specifies the limit of the listening history': qsTr('Specifies the limit of the listening history'),
'Enable this option to be notified when a new version of MellowPlayer is available.': qsTr('Enable this option to be notified when a new version of MellowPlayer is available.')
'Specifies the limit of the listening history': qsTr('Specifies the limit of the listening history')
};

return translations[toolTip];
Expand Down

0 comments on commit cfabd2a

Please sign in to comment.