Skip to content

Commit 8c399ac

Browse files
authored
Merge pull request #11 from derenv/main_window_sidebar
Main window sidebar
2 parents ecdf62f + ef3fafe commit 8c399ac

File tree

12 files changed

+1463
-418
lines changed

12 files changed

+1463
-418
lines changed

install_schemas.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ SCHEMA_DIR="$HOME/.local/share/glib-2.0/schemas"
2525
SCHEMA_FILE="com.gtk_d.NvidiaMonitorRust.gschema.xml"
2626

2727
# Create schema directory if it doesn't exist
28-
if [[ -d "$SCHEMA_DIR" ]]; then
29-
echo "$SCHEMA_DIR already exists.."
28+
if [[ -d $SCHEMA_DIR ]]; then
29+
echo "$SCHEMA_DIR already exists.."
3030
else
31-
echo "$SCHEMA_DIR needs created.."
32-
mkdir -p "$SCHEMA_DIR"
31+
echo "$SCHEMA_DIR needs created.."
32+
mkdir -p "$SCHEMA_DIR"
3333
fi
3434

3535
# Copy schema file across
3636
if [[ -f "$SCHEMA_DIR/$SCHEMA_FILE" ]]; then
37-
echo "$SCHEMA_FILE already exists, overwriting.."
38-
cp "./src/$SCHEMA_FILE" "$SCHEMA_DIR/"
37+
echo "$SCHEMA_FILE already exists, overwriting.."
38+
cp "./src/$SCHEMA_FILE" "$SCHEMA_DIR/"
3939
else
40-
echo "$SCHEMA_FILE needs copied to $SCHEMA_DIR.."
41-
cp "./src/$SCHEMA_FILE" "$SCHEMA_DIR/"
40+
echo "$SCHEMA_FILE needs copied to $SCHEMA_DIR.."
41+
cp "./src/$SCHEMA_FILE" "$SCHEMA_DIR/"
4242
fi
4343

4444
# Compile schemas

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ mod property;
2626
mod provider;
2727
mod subprocess;
2828
use mainwindow::MainWindow;
29+
mod custom_button;
2930
mod settingswindow;
3031

3132
// Imports

0 commit comments

Comments
 (0)