|
@@ -2,6 +2,7 @@
|
|
|
using System.Threading.Tasks;
|
|
|
using CardCollector.Commands;
|
|
|
using CardCollector.Resources;
|
|
|
+using CardCollector.Session.Modules;
|
|
|
|
|
|
namespace CardCollector.Session
|
|
|
{
|
|
@@ -13,6 +14,12 @@ namespace CardCollector.Session
|
|
|
public async Task BackToThis(UserSession session)
|
|
|
{
|
|
|
session.State = State;
|
|
|
+ switch (State)
|
|
|
+ {
|
|
|
+ case UserState.ShopMenu:
|
|
|
+ session.ResetModule<ShopModule>();
|
|
|
+ break;
|
|
|
+ }
|
|
|
await Parent.PrepareAndExecute();
|
|
|
}
|
|
|
|