mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
chore: dialog location (#602)
This commit is contained in:
@@ -40,7 +40,7 @@ class NewHostTreeDialog(
|
||||
|
||||
|
||||
init()
|
||||
setLocationRelativeTo(null)
|
||||
setLocationRelativeTo(owner)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -400,10 +400,12 @@ class TerminalTabbed(
|
||||
private fun showContextMenu(event: MouseEvent) {
|
||||
val popupMenu = FlatPopupMenu()
|
||||
popupMenu.add(I18n.getString("termora.toolbar.customize-toolbar")).addActionListener {
|
||||
val owner = SwingUtilities.getWindowAncestor(this@TerminalTabbed)
|
||||
val dialog = CustomizeToolBarDialog(
|
||||
SwingUtilities.getWindowAncestor(this@TerminalTabbed),
|
||||
owner,
|
||||
termoraToolBar
|
||||
)
|
||||
dialog.setLocationRelativeTo(owner)
|
||||
if (dialog.open()) {
|
||||
termoraToolBar.rebuild()
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ class MacroDialog(owner: Window) : DialogWrapper(owner) {
|
||||
initEvents()
|
||||
|
||||
init()
|
||||
setLocationRelativeTo(null)
|
||||
setLocationRelativeTo(owner)
|
||||
}
|
||||
|
||||
private fun initView() {
|
||||
|
||||
Reference in New Issue
Block a user