mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove redundant setting of prefs.git_local_only
In MainWindow::on_actionCloudOnline_triggered(), prefs.git_local_only was set twice in the case of going online. Remove the second, unnecessary, assignment. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
099662023c
commit
339f214384
1 changed files with 0 additions and 1 deletions
|
@ -660,7 +660,6 @@ void MainWindow::on_actionCloudOnline_triggered()
|
|||
prefs.git_local_only = isOffline;
|
||||
if (!isOffline) {
|
||||
// User requests to go online. Try to sync cloud storage
|
||||
prefs.git_local_only = false;
|
||||
if (unsaved_changes()) {
|
||||
// If there are unsaved changes, ask the user if they want to save them.
|
||||
// If they don't, they have to sync manually.
|
||||
|
|
Loading…
Add table
Reference in a new issue