We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9139906 commit 817cb77Copy full SHA for 817cb77
src/Dialog.php
@@ -110,11 +110,7 @@ public function properties(array $properties): self
110
111
public function asSheet(?string $windowId = null): self
112
{
113
- if (is_null($windowId)) {
114
- $this->windowReference = Window::current()->id;
115
- } else {
116
- $this->windowReference = $windowId;
117
- }
+ $this->windowReference = $windowId ?? Window::current()->getId();
118
119
return $this;
120
}
src/Windows/Window.php
@@ -79,6 +79,11 @@ public function id(string $id = 'main'): self
79
80
81
82
+ public function getId(): string
83
+ {
84
+ return $this->id;
85
+ }
86
+
87
public function title(string $title): self
88
89
$this->title = $title;
0 commit comments