Merge pull request #4156 from evgenyzinoviev/windows-pr
Improvements in BrowserWindow
This commit is contained in:
commit
8cabe0f008
12 changed files with 429 additions and 46 deletions
|
@ -120,6 +120,18 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
|
|||
if (options.Get(options::kResizable, &resizable)) {
|
||||
SetResizable(resizable);
|
||||
}
|
||||
bool minimizable;
|
||||
if (options.Get(options::kMinimizable, &minimizable)) {
|
||||
SetMinimizable(minimizable);
|
||||
}
|
||||
bool closable;
|
||||
if (options.Get(options::kClosable, &closable)) {
|
||||
SetClosable(closable);
|
||||
}
|
||||
bool maximizable;
|
||||
if (options.Get(options::kMaximizable, &maximizable)) {
|
||||
SetMaximizable(maximizable);
|
||||
}
|
||||
#endif
|
||||
bool top;
|
||||
if (options.Get(options::kAlwaysOnTop, &top) && top) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue