Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions data/com.github.tkashkin.gamehub.gschema.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@
<default>true</default>
<summary>Import tags</summary>
</key>
<key name="dialogs-resize" type="b">
<default>true</default>
<summary>Enable dialogs resizing</summary>
</key>
</schema>

<!-- Auth -->
Expand Down
1 change: 1 addition & 0 deletions src/settings/UI.vala
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ namespace GameHub.Settings.UI
public bool grid_doubleclick { get; set; }
public bool merge_games { get; set; }
public bool import_tags { get; set; }
public bool dialogs_resize { get; set; }

public Behavior()
{
Expand Down
2 changes: 1 addition & 1 deletion src/ui/dialogs/GameDetailsDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace GameHub.UI.Dialogs

public GameDetailsDialog(Game? game)
{
Object(transient_for: Windows.MainWindow.instance, resizable: false, title: game.name, game: game);
Object(transient_for: Windows.MainWindow.instance, resizable: Settings.UI.Behavior.instance.dialogs_resize, title: game.name, game: game);
}

construct
Expand Down
2 changes: 1 addition & 1 deletion src/ui/dialogs/GamePropertiesDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace GameHub.UI.Dialogs

public GamePropertiesDialog(Game? game)
{
Object(transient_for: Windows.MainWindow.instance, resizable: false, title: _("%s: Properties").printf(game.name), game: game);
Object(transient_for: Windows.MainWindow.instance, resizable: Settings.UI.Behavior.instance.dialogs_resize , title: _("%s: Properties").printf(game.name), game: game);
}

construct
Expand Down
5 changes: 5 additions & 0 deletions src/ui/dialogs/SettingsDialog/pages/ui/Behavior.vala
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ namespace GameHub.UI.Dialogs.SettingsDialog.Pages.UI
add_separator();

add_switch(_("Use imported tags"), settings.import_tags, v => { settings.import_tags = v; });

add_separator( );

add_switch( _( "Enable resizing of the 'Game properties' dialog and the 'Game details' dialog" ), settings.dialogs_resize, v => { settings.dialogs_resize = v; });

}
}
}