feat: set wayland app_id

This commit is contained in:
Tobias Berger 2024-01-05 13:16:08 +01:00
parent 578cc7723c
commit cf9b557446
Signed by: toby
GPG key ID: 2D05EFAB764D6A88

View file

@ -6,7 +6,7 @@ use std::{
path::Path,
};
use eframe::egui::{self, Key, TextEdit};
use eframe::egui::{self, Key, TextEdit, ViewportBuilder};
enum RunError {
HomeDir(homedir::GetHomeError),
@ -45,7 +45,10 @@ fn main() -> Result<(), RunError> {
.open(Path::join(&home_dir, "todo.txt"))
.map_err(RunError::OpenFile)?;
let native_options = eframe::NativeOptions::default();
let native_options = eframe::NativeOptions {
viewport: ViewportBuilder::default().with_app_id("todoodoo"),
..Default::default()
};
eframe::run_native(
"To-DooDoo",
native_options,