Delete shortcut when deleting instances
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
0a89f5cfaa
commit
d3f337d6ef
11 changed files with 168 additions and 67 deletions
|
@ -56,11 +56,17 @@ enum class InstCreateError { NoCreateError = 0, NoSuchVersion, UnknownCreateErro
|
|||
|
||||
enum class GroupsState { NotLoaded, Steady, Dirty };
|
||||
|
||||
struct TrashShortcutItem {
|
||||
ShortcutData data;
|
||||
QString trashPath;
|
||||
};
|
||||
|
||||
struct TrashHistoryItem {
|
||||
QString id;
|
||||
QString path;
|
||||
QString trashPath;
|
||||
QString groupName;
|
||||
QList<TrashShortcutItem> shortcuts;
|
||||
};
|
||||
|
||||
class InstanceList : public QAbstractListModel {
|
||||
|
@ -111,8 +117,8 @@ class InstanceList : public QAbstractListModel {
|
|||
void deleteGroup(const GroupId& name);
|
||||
void renameGroup(const GroupId& src, const GroupId& dst);
|
||||
bool trashInstance(const InstanceId& id);
|
||||
bool trashedSomething();
|
||||
void undoTrashInstance();
|
||||
bool trashedSomething() const;
|
||||
bool undoTrashInstance();
|
||||
void deleteInstance(const InstanceId& id);
|
||||
|
||||
// Wrap an instance creation task in some more task machinery and make it ready to be used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue