* Electron Version: 2.0.2
* Operating System (Platform and Version): Win10 x64 version 1803
* Last known working Electron version: 1.9.0

**Expected Behavior**
Calling win.setResizable(false) and then win.setResizable(true) should return the window to it's original state. Specifically, it should not change the result of win.isMaximizable().

**Actual behavior**
Calling win.setResizable(false) and then win.setResizable(true) results in the window not being maximizable. The maximize button is disabled and win.isMaximizable returns false.

**To Reproduce**
In any electron application with a window that is resizable, call win.setResizable(false) and then win.setResizable(true). The window will now be impossible to maximize.
atom/browser/native_window_views.cc
params.remove_standard_frame = !has_frame();
  if (transparent())
    params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
  
  
  if (transparent() && !has_frame())
    params.shadow_type = views::Widget::InitParams::SHADOW_TYPE_NONE;
  bool focusable;
  if (options.Get(options::kFocusable, &focusable) && !focusable)
    params.activatable = views::Widget::InitParams::ACTIVATABLE_NO;
#if defined(OS_WIN)
  if (parent)
    params.parent = parent->GetNativeWindow();
  params.native_widget = new AtomDesktopNativeWidgetAura(widget());
  atom_desktop_window_tree_host_win_ = new AtomDesktopWindowTreeHostWin(
      this, widget(),
      static_cast<views::DesktopNativeWidgetAura*>(params.native_widget));
  params.desktop_window_tree_host = atom_desktop_window_tree_host_win_;
#elif defined(USE_X11)
  std::string name = Browser::Get()->GetName();
  
  params.wm_role_name = "browser-window";
  
  params.wm_class_name = base::ToLowerASCII(name);
  params.wm_class_class = name;
#endif
  widget()->Init(params);
  bool fullscreen = false;
  options.Get(options::kFullscreen, &fullscreen);
  std::string window_type;