Skip to content

Commit

Permalink
Merge pull request #397 from raisingthefloor/christopher/remove-vesti…
Browse files Browse the repository at this point in the history
…gial-window

Remove vestigial 'CommunityPickerWindow' and related strings
  • Loading branch information
christopher-rtf authored Nov 5, 2024
2 parents d8bf454 + 542e7e9 commit 6581bce
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 127 deletions.
45 changes: 4 additions & 41 deletions Morphic.Client/Bar/BarManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,47 +273,10 @@ public async Task LoadSessionBarAsync(MorphicSession session, string communityId
UserCommunity? community = null;
UserBar? userBar = null;

//if (session.Communities.Length == 0)
//{
// MessageBox.Show("You are not part of a Morphic community yet.", "Morphic");
//}
//else if (session.Communities.Length == 1)
//{
// community = session.Communities.First();
//}
//else
//{
// The user is a member of multiple communities.

//// See if any membership has changed
//bool changed = session.Communities.Length != lastCommunities.Length
// || !session.Communities.Select(c => c.Id).OrderBy(id => id)
// .SequenceEqual(lastCommunities.OrderBy(id => id));

if (/*!changed &&*/ communityId is not null)
{
community = session.Communities.FirstOrDefault(c => c.Id == communityId);
}

//if (community is null)
//{
// this.Logger.LogInformation("Showing community picker");

// // Load the bars while the picker is shown
// Dictionary<string, Task<UserBar>> bars =
// session.Communities.ToDictionary(c => c.Id, c => session.GetBar(c.Id));

// // Show the picker
// CommunityPickerWindow picker = new CommunityPickerWindow(session.Communities);
// bool gotCommunity = picker.ShowDialog() == true;
// community = gotCommunity ? picker.SelectedCommunity : null;

// if (community is not null)
// {
// userBar = await bars[community.Id];
// }
//}
//}
if (/*!changed &&*/ communityId is not null)
{
community = session.Communities.FirstOrDefault(c => c.Id == communityId);
}

if (community is not null)
{
Expand Down
35 changes: 0 additions & 35 deletions Morphic.Client/Dialogs/CommunityPickerWindow.xaml

This file was deleted.

43 changes: 0 additions & 43 deletions Morphic.Client/Dialogs/CommunityPickerWindow.xaml.cs

This file was deleted.

4 changes: 0 additions & 4 deletions Morphic.Client/Localization/StringResources.es.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@
<system:String x:Key="MorphicBarButtonContextMenuItem_LearnMore">Más información</system:String>
<system:String x:Key="MorphicBarButtonContextMenuItem_Settings">Ajustes</system:String>

<system:String x:Key="MorphicGroupPickerDialog_ChangePreferenceLaterUsingMorphicMenuNote">Puede cambiar esta preferencia más tarde usando el Menú de Morphic.</system:String>
<system:String x:Key="MorphicGroupPickerDialog_SelectGroupHeader">Seleccione el grupo cuya barra de Morphic le gustaría ver:</system:String>
<system:String x:Key="MorphicGroupPickerDialog_YouAreMemberOfMultipleGroups">Usted es miembro de varios Grupos de Morphic.</system:String>

<system:String x:Key="RestoreDialog_BackupDate">Fecha de la copia de seguridad</system:String>
<system:String x:Key="RestoreDialog_ClickingBelowWillRestoreSettings_Part1">Haciendo clic</system:String>
<system:String x:Key="RestoreDialog_ClickingBelowWillRestoreSettings_Part2">Restaurar de la copia de seguridad</system:String>
Expand Down
4 changes: 0 additions & 4 deletions Morphic.Client/Localization/StringResources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@
<system:String x:Key="MorphicBarButtonContextMenuItem_LearnMore">_Learn more</system:String>
<system:String x:Key="MorphicBarButtonContextMenuItem_Settings">_Settings</system:String>

<system:String x:Key="MorphicGroupPickerDialog_ChangePreferenceLaterUsingMorphicMenuNote">You can change this preference later, by using the Morphic Menu.</system:String>
<system:String x:Key="MorphicGroupPickerDialog_SelectGroupHeader">Select the group whose bar you would like to see now:</system:String>
<system:String x:Key="MorphicGroupPickerDialog_YouAreMemberOfMultipleGroups">You are a member of several Morphic Groups.</system:String>

<system:String x:Key="RestoreDialog_BackupDate">Backup Date</system:String>
<system:String x:Key="RestoreDialog_ClickingBelowWillRestoreSettings_Part1">Clicking</system:String>
<system:String x:Key="RestoreDialog_ClickingBelowWillRestoreSettings_Part2">Restore from backup</system:String>
Expand Down

0 comments on commit 6581bce

Please sign in to comment.