mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
draft refresh methods
This commit is contained in:
parent
b97ffe5791
commit
45dc3b160a
5 changed files with 22 additions and 2 deletions
|
|
@ -28,14 +28,14 @@ void History::refresh()
|
||||||
{
|
{
|
||||||
Memory match;
|
Memory match;
|
||||||
|
|
||||||
historyBack->set_sensitive( // @TODO operate with action status
|
historyBack->refresh(
|
||||||
try_back(
|
try_back(
|
||||||
match,
|
match,
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
historyForward->set_sensitive( // @TODO operate with action status
|
historyForward->refresh(
|
||||||
try_forward(
|
try_forward(
|
||||||
match,
|
match,
|
||||||
false
|
false
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,9 @@ Back::Back()
|
||||||
_("Back")
|
_("Back")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Back::refresh(
|
||||||
|
const bool & ENABLED
|
||||||
|
) {
|
||||||
|
// @TODO update action status
|
||||||
|
}
|
||||||
|
|
@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Back();
|
Back();
|
||||||
|
|
||||||
|
void refresh(
|
||||||
|
const bool & ENABLED
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,10 @@ Forward::Forward()
|
||||||
set_tooltip_text(
|
set_tooltip_text(
|
||||||
_("Forward")
|
_("Forward")
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Forward::refresh(
|
||||||
|
const bool & ENABLED
|
||||||
|
) {
|
||||||
|
// @TODO update action status
|
||||||
}
|
}
|
||||||
|
|
@ -11,6 +11,10 @@ namespace app::browser::main::tab::page::navigation::history
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Forward();
|
Forward();
|
||||||
|
|
||||||
|
void refresh(
|
||||||
|
const bool & ENABLED
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue