mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
preserve current scheme on reload using pending scheme name
This commit is contained in:
@@ -346,8 +346,11 @@ class SchemeManagerImpl<T : Scheme, MUTABLE_SCHEME : T>(val fileSpec: String,
|
||||
continue
|
||||
}
|
||||
|
||||
if (scheme === currentScheme) {
|
||||
currentScheme = null
|
||||
currentScheme?.let {
|
||||
if (scheme === it) {
|
||||
currentPendingSchemeName = it.name
|
||||
currentScheme = null
|
||||
}
|
||||
}
|
||||
|
||||
iterator.remove()
|
||||
|
||||
Reference in New Issue
Block a user