mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] IJPL-158332 Fix button status on hot swap cancel
GitOrigin-RevId: 5570e1bf1777e3348ce07454529ce01490cf5956
This commit is contained in:
committed by
intellij-monorepo-bot
parent
42b45564c4
commit
f295417161
+1
@@ -88,6 +88,7 @@ internal class HotSwapFloatingToolbarProvider : FloatingToolbarProvider {
|
||||
override fun onStatusChanged(session: HotSwapSession<*>, status: HotSwapVisibleStatus) {
|
||||
if (status == HotSwapVisibleStatus.IN_PROGRESS) {
|
||||
hotSwapAction.inProgress = true
|
||||
hotSwapAction.session = null
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -58,6 +58,7 @@ class HotSwapSession<T>(val project: Project, internal val provider: HotSwapProv
|
||||
@Volatile
|
||||
internal var currentStatus: HotSwapVisibleStatus = HotSwapVisibleStatus.NO_CHANGES
|
||||
private set(value) {
|
||||
if (field == value) return
|
||||
field = value
|
||||
HotSwapSessionManager.getInstance(project).fireStatusChanged(this, value)
|
||||
}
|
||||
@@ -100,6 +101,7 @@ class HotSwapSession<T>(val project: Project, internal val provider: HotSwapProv
|
||||
}
|
||||
|
||||
override fun onCanceled() {
|
||||
currentStatus = HotSwapVisibleStatus.CHANGES_READY
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user