Add first-run permission summary dialog before launch

This commit is contained in:
2026-02-28 00:07:49 +02:00
parent a515ee6b4f
commit 45e1c57842
4 changed files with 203 additions and 70 deletions

View File

@@ -1765,6 +1765,14 @@ impl Database {
Ok(())
}
pub fn set_first_run_prompted(&self, id: i64, prompted: bool) -> SqlResult<()> {
self.conn.execute(
"UPDATE appimages SET first_run_prompted = ?2 WHERE id = ?1",
params![id, prompted as i32],
)?;
Ok(())
}
// --- Launch statistics ---
pub fn get_top_launched(&self, limit: i32) -> SqlResult<Vec<(String, u64)>> {