Skip to content

Commit 2c2f8df

Browse files
committed
Fix typo in "cature" -> "capture"
Fixes #3285
1 parent c45482e commit 2c2f8df

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/app/clipboardserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ void ClipboardServer::loadSettings(AppConfig *appConfig)
747747
m_saveOnDeactivate = appConfig->option<Config::save_on_app_deactivated>();
748748

749749
if ( platformNativeInterface()->canPreventScreenCapture() )
750-
setPreventScreenCapture(appConfig->option<Config::prevent_screen_cature>());
750+
setPreventScreenCapture(appConfig->option<Config::prevent_screen_capture>());
751751

752752
if (m_monitor) {
753753
stopMonitoring();

src/common/appconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ struct autostart : Config<bool> {
2828
static Value defaultValue();
2929
};
3030

31-
struct prevent_screen_cature : Config<bool> {
32-
static QString name() { return QStringLiteral("prevent_screen_cature"); }
31+
struct prevent_screen_capture : Config<bool> {
32+
static QString name() { return QStringLiteral("prevent_screen_capture"); }
3333
static Value defaultValue() { return true; }
3434
};
3535

src/gui/configurationmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void ConfigurationManager::initOptions()
236236
{
237237
/* general options */
238238
bind<Config::autostart>(m_tabGeneral->checkBoxAutostart);
239-
bind<Config::prevent_screen_cature>(m_tabGeneral->checkBoxPreventScreenCapture);
239+
bind<Config::prevent_screen_capture>(m_tabGeneral->checkBoxPreventScreenCapture);
240240
bind<Config::clipboard_tab>(m_tabHistory->comboBoxClipboardTab->lineEdit());
241241
bind<Config::maxitems>(m_tabHistory->spinBoxItems);
242242
bind<Config::expire_tab>(m_tabHistory->spinBoxExpireTab);

utils/appveyor/test_screenshots.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ screenshot() {
4242
"$Executable" screenshot > "$file"
4343
}
4444

45-
prevent_screen_cature=$("$Executable" config prevent_screen_cature)
46-
if [[ $prevent_screen_cature != "true" ]]; then
47-
echo "ERROR: Option 'prevent_screen_cature' must be true by default"
45+
prevent_screen_capture=$("$Executable" config prevent_screen_capture)
46+
if [[ $prevent_screen_capture != "true" ]]; then
47+
echo "ERROR: Option 'prevent_screen_capture' must be true by default"
4848
exit 1
4949
fi
5050

5151
"$Executable" menu
5252

5353
screenshot "App - Preventing screenshots"
54-
"$Executable" config prevent_screen_cature false
54+
"$Executable" config prevent_screen_capture false
5555

5656
screenshot "App and menu"
5757
"$Executable" $keys "focus:TrayMenu" "ESCAPE" "focus:ClipboardBrowser"

0 commit comments

Comments
 (0)