Focus contents of various pages when user switches to their tabs
This commit is contained in:
@@ -35,7 +35,7 @@ class AddToCargo(ContextMenuSingle):
|
||||
typeID = int(mainItem.ID)
|
||||
command = cmd.GuiAddCargoCommand(fitID=fitID, itemID=typeID, amount=1)
|
||||
if self.mainFrame.command.Submit(command):
|
||||
self.mainFrame.additionsPane.select("Cargo")
|
||||
self.mainFrame.additionsPane.select("Cargo", focus=False)
|
||||
|
||||
|
||||
AddToCargo.register()
|
||||
|
||||
@@ -30,7 +30,7 @@ class AddToCargoAmmo(ContextMenuSingle):
|
||||
typeID = int(mainItem.ID)
|
||||
command = cmd.GuiAddCargoCommand(fitID=fitID, itemID=typeID, amount=1000)
|
||||
if self.mainFrame.command.Submit(command):
|
||||
self.mainFrame.additionsPane.select("Cargo")
|
||||
self.mainFrame.additionsPane.select("Cargo", focus=False)
|
||||
|
||||
|
||||
AddToCargoAmmo.register()
|
||||
|
||||
@@ -44,7 +44,7 @@ class DroneAddStack(ContextMenuSingle):
|
||||
itemID=int(mainItem.ID),
|
||||
amount=self.amount)
|
||||
if self.mainFrame.command.Submit(command):
|
||||
self.mainFrame.additionsPane.select('Drones')
|
||||
self.mainFrame.additionsPane.select('Drones', focus=False)
|
||||
|
||||
|
||||
DroneAddStack.register()
|
||||
|
||||
@@ -35,7 +35,6 @@ class FillWithItem(ContextMenuSingle):
|
||||
self.mainFrame.command.Submit(cmd.GuiFillWithNewLocalModulesCommand(
|
||||
fitID=self.mainFrame.getActiveFit(),
|
||||
itemID=int(mainItem.ID)))
|
||||
self.mainFrame.additionsPane.select('Drones')
|
||||
|
||||
|
||||
FillWithItem.register()
|
||||
|
||||
@@ -45,7 +45,7 @@ class ProjectItem(ContextMenuSingle):
|
||||
else:
|
||||
success = False
|
||||
if success:
|
||||
self.mainFrame.additionsPane.select('Projected')
|
||||
self.mainFrame.additionsPane.select('Projected', focus=False)
|
||||
|
||||
|
||||
ProjectItem.register()
|
||||
|
||||
Reference in New Issue
Block a user