summaryrefslogtreecommitdiff
path: root/Pages/Component/TabPane.razor
diff options
context:
space:
mode:
Diffstat (limited to 'Pages/Component/TabPane.razor')
-rw-r--r--Pages/Component/TabPane.razor8
1 files changed, 7 insertions, 1 deletions
diff --git a/Pages/Component/TabPane.razor b/Pages/Component/TabPane.razor
index 483d0d6..ba4a13a 100644
--- a/Pages/Component/TabPane.razor
+++ b/Pages/Component/TabPane.razor
@@ -1,4 +1,6 @@
-<link rel="stylesheet" href="@(nameof(HyperBooru)).styles.css"/>
+@implements IDisposable
+
+<link rel="stylesheet" href="@(nameof(HyperBooru)).styles.css"/>
@if(Parent.ActivePane == this) {
@ChildContent
@@ -20,4 +22,8 @@
Parent.AddPane(this);
}
+
+ public void Dispose() {
+ Parent.RemovePane(this);
+ }
} \ No newline at end of file