Skip to content

Commit

Permalink
Only show First Sync Dialog once
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Apr 18, 2024
1 parent 4f720bb commit e2bb5c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/mod-cloud-audiocom/CloudProjectFileIOExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,16 @@ class IOExtension final : public ProjectFileIOExtension
{
auto project = weakProject.lock();

if (!project)
if (
!project ||
ProjectCloudExtension::Get(*project).IsFirstSyncDialogShown())
return;

ProjectCloudExtension::Get(*project).SetFirstSyncDialogShown(true);

const auto result =
SyncSucceededDialog { project.get() }.ShowDialog();

ProjectCloudExtension::Get(*project).SetFirstSyncDialogShown(true);

if (result == SyncSucceededDialog::ViewOnlineIdentifier())
BasicUI::OpenInDefaultBrowser(audacity::ToWXString(
ProjectCloudExtension::Get(*project).GetCloudProjectPage()));
Expand Down

0 comments on commit e2bb5c3

Please sign in to comment.