summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/windows.cpp9
-rw-r--r--src/actions/windows.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/windows.cpp b/src/actions/windows.cpp
index 1fe359402..9a7743590 100644
--- a/src/actions/windows.cpp
+++ b/src/actions/windows.cpp
@@ -275,6 +275,15 @@ impHandler0(bankWindowShow)
return true;
}
+impHandler0(cartWindowShow)
+{
+ if (!serverFeatures->haveCart())
+ return false;
+
+ showHideWindow(cartWindow);
+ return true;
+}
+
impHandler0(updaterWindowShow)
{
if (updaterWindow)
diff --git a/src/actions/windows.h b/src/actions/windows.h
index e418028ce..e3a4120cf 100644
--- a/src/actions/windows.h
+++ b/src/actions/windows.h
@@ -52,6 +52,7 @@ namespace Actions
decHandler(questsWindowShow);
decHandler(updaterWindowShow);
decHandler(bankWindowShow);
+ decHandler(cartWindowShow);
} // namespace Actions
#undef decHandler