Merge pull request #323 from KLayout/issue-321

Fixed issue #321
This commit is contained in:
Matthias Köfferlein 2019-08-18 17:30:47 +02:00 committed by GitHub
commit 46d2fef0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -674,9 +674,7 @@ void
NetlistBrowserDialog::activated ()
{
std::string state;
if (lay::PluginRoot::instance ()) {
lay::PluginRoot::instance ()->config_get (cfg_l2ndb_window_state, state);
}
view ()->config_get (cfg_l2ndb_window_state, state);
lay::restore_dialog_state (this, state, false /*don't adjust the section sizes*/);
// Switch to the active cellview index when no valid one is set.

View File

@ -346,6 +346,8 @@ Plugin::config_get (const std::string &name, std::string &value) const
if (p != m_repository.end ()) {
value = p->second;
return true;
} else if (mp_parent) {
return mp_parent->config_get (name, value);
} else {
value = "";
return false;

View File

@ -636,9 +636,7 @@ void
MarkerBrowserDialog::activated ()
{
std::string state;
if (lay::PluginRoot::instance ()) {
lay::PluginRoot::instance ()->config_get (cfg_rdb_window_state, state);
}
view ()->config_get (cfg_rdb_window_state, state);
lay::restore_dialog_state (this, state);
// Switch to the active cellview index when no valid one is set.