|
@@ -1504,7 +1504,11 @@ extension KMMainViewController {
|
|
|
|
|
|
@objc func openRightPane() -> Void {
|
|
|
if (KMPreferenceManager.shared.autoExpandPropertyPanel) {
|
|
|
+ if self.rightPanelIsOpen {
|
|
|
+ return
|
|
|
+ }
|
|
|
self.rightPanelIsOpen = true
|
|
|
+ self.toolbarController.selectItem(KMRightControlToolbarItemIdentifier)
|
|
|
applyLeftSideWidth(lastLeftPanWidth, rightSideWidth: defaultRightWidth)
|
|
|
}
|
|
|
}
|
|
@@ -1512,6 +1516,7 @@ extension KMMainViewController {
|
|
|
@objc func closeRightPane() -> Void {
|
|
|
if (KMPreferenceManager.shared.autoExpandPropertyPanel) {
|
|
|
self.rightPanelIsOpen = false
|
|
|
+ self.toolbarController.cancelSelected(KMRightControlToolbarItemIdentifier)
|
|
|
applyLeftSideWidth(lastLeftPanWidth, rightSideWidth: 0)
|
|
|
}
|
|
|
}
|