Skip to content

Commit

Permalink
add write permissions to ci
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
  • Loading branch information
ryanabx committed Aug 22, 2024
1 parent 00b3a03 commit 5828bae
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
25 changes: 13 additions & 12 deletions src/app_tray/compositor/cosmic_comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ impl ActivationHandler for WaylandData {

fn new_token(&mut self, token: String, data: &Self::RequestData) {
let _ = self.tx.unbounded_send(CosmicIncoming::ActivationToken {
token: Some(token),
app_id: data.app_id().map(|x| x.to_owned()),
exec: data.exec.clone(),
gpu_idx: data.gpu_idx,
_token: Some(token),
_app_id: data.app_id().map(|x| x.to_owned()),
_exec: data.exec.clone(),
_gpu_idx: data.gpu_idx,
});
}
}
Expand Down Expand Up @@ -359,10 +359,10 @@ fn wayland_handler(tx: UnboundedSender<CosmicIncoming>, rx: Channel<WaylandReque
);
} else {
let _ = state.tx.unbounded_send(CosmicIncoming::ActivationToken {
token: None,
app_id: Some(app_id),
exec,
gpu_idx,
_token: None,
_app_id: Some(app_id),
_exec: exec,
_gpu_idx: gpu_idx,
});
}
}
Expand Down Expand Up @@ -408,10 +408,10 @@ pub enum CosmicIncoming {
Workspace(Vec<ZcosmicWorkspaceHandleV1>),
Output(OutputUpdate),
ActivationToken {
token: Option<String>,
app_id: Option<String>,
exec: String,
gpu_idx: Option<usize>,
_token: Option<String>,
_app_id: Option<String>,
_exec: String,
_gpu_idx: Option<usize>,
},
}

Expand Down Expand Up @@ -443,6 +443,7 @@ pub enum WaylandRequest {
pub enum ToplevelRequest {
Activate(ZcosmicToplevelHandleV1),
Minimize(ZcosmicToplevelHandleV1),
#[allow(unused)]
Quit(ZcosmicToplevelHandleV1),
}

Expand Down
1 change: 1 addition & 0 deletions src/app_tray/compositor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ pub enum WaylandIncoming {
pub enum WaylandOutgoing {
Exec(String, String),
Toggle(WindowHandle),
#[allow(unused)]
Activate(WindowHandle),
}

Expand Down
2 changes: 0 additions & 2 deletions src/settings_tray/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ impl Clock {
let now = Local::now();
let formatted_time = now.format("%I:%M %p").to_string();
let formatted_date = now.format("%Y-%m-%d").to_string();
println!("Sending {} to main thread", formatted_time);
let _ = output
.send(ClockMessage::UpdateClock(formatted_time, formatted_date))
.await
.unwrap();
println!("Through sending thing");
// Calculate the duration until the next minute
let next_minute = now.with_second(0).unwrap().with_nanosecond(0).unwrap()
+ chrono::Duration::minutes(1);
Expand Down

0 comments on commit 5828bae

Please sign in to comment.