mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
fix refresh
This commit is contained in:
@@ -16,25 +16,16 @@ if ("Connect" == who )
|
||||
}
|
||||
else if ("Refresh" == who)
|
||||
{
|
||||
|
||||
DB db = context.get("db");
|
||||
|
||||
thread("initTree", args(), true);
|
||||
|
||||
|
||||
Panel tab = (Panel)((Tabs)context.get("/mainTabs")).getSelectedComponent();
|
||||
if ( tab.getName() == "Host" )
|
||||
{
|
||||
tab = (Panel)((Tabs)tab.get("tabs")).getSelectedComponent();
|
||||
if ( tab.getName() != "Processes")
|
||||
{
|
||||
db.flushCache();
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( tab.getName() != "Host" )
|
||||
{
|
||||
db.flushCache();
|
||||
}
|
||||
|
||||
|
||||
thread("initTree", args(), true);
|
||||
|
||||
String script = tab.getProperty("refreshScript");
|
||||
HashObject scriptArgs = (HashObject)tab.getProperty("refreshArgs");
|
||||
if ( script != null )
|
||||
|
||||
@@ -19,22 +19,14 @@ else if ("Connection" == who)
|
||||
else if ("Refresh" == who)
|
||||
{
|
||||
DB db = context.get("db");
|
||||
|
||||
thread("initTree", args(), true);
|
||||
|
||||
|
||||
Panel tab = (Panel)((Tabs)context.get("/mainTabs")).getSelectedComponent();
|
||||
if ( tab.getName() == "Host" )
|
||||
{
|
||||
tab = (Panel)((Tabs)tab.get("tabs")).getSelectedComponent();
|
||||
if ( tab.getName() != "Processes")
|
||||
{
|
||||
db.flushCache();
|
||||
}
|
||||
}
|
||||
else
|
||||
if ( tab.getName() != "Host" )
|
||||
{
|
||||
db.flushCache();
|
||||
}
|
||||
|
||||
thread("initTree", args(), true);
|
||||
|
||||
String script = tab.getProperty("refreshScript");
|
||||
HashObject scriptArgs = (HashObject)tab.getProperty("refreshArgs");
|
||||
|
||||
Reference in New Issue
Block a user