[gnote] Fix fuse timeout
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix fuse timeout
- Date: Sun, 13 Dec 2020 17:09:34 +0000 (UTC)
commit 515191ffbb7dbc38c05b9b083d5433a02bfcac80
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 13 19:06:40 2020 +0200
Fix fuse timeout
src/synchronization/fusesyncserviceaddin.cpp | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/synchronization/fusesyncserviceaddin.cpp b/src/synchronization/fusesyncserviceaddin.cpp
index 3940f176..d24b2591 100644
--- a/src/synchronization/fusesyncserviceaddin.cpp
+++ b/src/synchronization/fusesyncserviceaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012-2013,2017-2019 Aurimas Cernius
+ * Copyright (C) 2012-2013,2017-2020 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -256,17 +256,7 @@ bool FuseSyncServiceAddin::mount_fuse(bool useStoredValues)
int FuseSyncServiceAddin::get_timeout_ms()
{
- Glib::RefPtr<Gio::Settings> settings =
ignote().preferences().get_schema_settings(Preferences::SCHEMA_GNOTE);
- try {
- return settings->get_int(Preferences::SYNC_FUSE_MOUNT_TIMEOUT);
- }
- catch(...) {
- try {
- settings->set_int(Preferences::SYNC_FUSE_MOUNT_TIMEOUT, DEFAULT_MOUNT_TIMEOUT_MS);
- }
- catch(...) {}
- return DEFAULT_MOUNT_TIMEOUT_MS;
- }
+ return ignote().preferences().sync_fuse_mount_timeout();
}
void FuseSyncServiceAddin::set_up_mount_path()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]