fix default action for flatpak
Signed-off-by: sshcrack <34072808+sshcrack@users.noreply.github.com>
This commit is contained in:
parent
b16e12c9af
commit
43ccf18449
2 changed files with 11 additions and 3 deletions
|
@ -1651,6 +1651,16 @@ void MainWindow::on_actionCreateInstanceShortcutOther_triggered() {
|
|||
QMessageBox::information(this, tr("Create instance shortcut"), tr("Created a shortcut to this instance!"));
|
||||
}
|
||||
|
||||
void MainWindow::on_actionCreateInstanceShortcut_triggered() {
|
||||
if(!m_selectedInstance)
|
||||
return;
|
||||
|
||||
if(DesktopServices::isFlatpak())
|
||||
onactionCreateInstanceShortcutOther_triggered();
|
||||
else
|
||||
on_actionCreateInstanceShortcutDesktop_triggered();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionCreateInstanceShortcutDesktop_triggered() {
|
||||
if (!m_selectedInstance)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue