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
@ -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…
x
Reference in New Issue
Block a user